user preferences - chord type
This commit is contained in:
@@ -18,4 +18,8 @@ export class UserService {
|
||||
switchMap(auth => this.db.doc$<User>('user/' + auth.uid))
|
||||
);
|
||||
}
|
||||
|
||||
public async update$(uid: string, data: Partial<User>): Promise<void> {
|
||||
await this.db.doc<User>('user/' + uid).update(data);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
import {ChordMode} from '../widget-modules/components/song-text/song-text.component';
|
||||
|
||||
export interface User {
|
||||
id: string;
|
||||
name: string;
|
||||
role: 'admin';
|
||||
chordMode: ChordMode
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user