Cleaned up Redemptions with use of AsyncPipe & input transformers.

This commit is contained in:
Tom
2025-04-09 20:57:19 +00:00
parent b0f9a2dea8
commit daa500111c
14 changed files with 136 additions and 203 deletions

View File

@ -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;