Cleaned up Redemptions with use of AsyncPipe & input transformers.
This commit is contained in:
@ -2,7 +2,7 @@ import { HttpClient } from '@angular/common/http';
|
||||
import { inject, Injectable } from '@angular/core';
|
||||
import { environment } from '../../../environments/environment';
|
||||
import TwitchRedemption from '../models/twitch-redemption';
|
||||
import { catchError, EMPTY, Observable, of } from 'rxjs';
|
||||
import { catchError, EMPTY, of } from 'rxjs';
|
||||
import EventService from './EventService';
|
||||
|
||||
@Injectable({
|
||||
@ -11,6 +11,7 @@ import EventService from './EventService';
|
||||
export default class TwitchRedemptionService {
|
||||
private readonly http = inject(HttpClient);
|
||||
private readonly events = inject(EventService);
|
||||
|
||||
private twitchRedemptions: TwitchRedemption[] = [];
|
||||
private loaded = false;
|
||||
|
||||
|
Reference in New Issue
Block a user