transpose & history

This commit is contained in:
2020-06-13 17:41:53 +02:00
parent bcbd119fbd
commit 835ffa9e8e
19 changed files with 256 additions and 23 deletions

View File

@@ -31,6 +31,10 @@ export class UserService {
return this._user$.pipe(filter(_ => !!_));
}
public async currentUser(): Promise<User> {
return this.user$.pipe(first()).toPromise();
}
public getUserbyId(userId: string): Promise<User> {
return this.getUserbyId$(userId).pipe(first()).toPromise();
}