set song count

This commit is contained in:
2024-06-09 22:28:18 +02:00
parent 669bd0d852
commit 2f523c5092
8 changed files with 82 additions and 6 deletions

View File

@@ -14,6 +14,7 @@ export class ShowDataService {
this.dbService.col$<Show>(this.collection).subscribe(_ => this.list$.next(_));
}
public listRaw$ = () => this.dbService.col$<Show>(this.collection);
public list$ = new BehaviorSubject<Show[]>([]);
public read$ = (showId: string): Observable<Show | null> => this.list$.pipe(map(_ => _.find(s => s.id === showId) || null));