quick fixes to statuses updating
This commit is contained in:
@@ -66,9 +66,9 @@ export default class UserService {
|
||||
);
|
||||
}
|
||||
|
||||
updateUserStatus(userId: string, newStatus: UserStatus) {
|
||||
async updateUserStatus(userId: string, newStatus: UserStatus) {
|
||||
const docRef = doc(this.db, Collections.users, userId);
|
||||
setDoc(
|
||||
await setDoc(
|
||||
docRef,
|
||||
{ userStatus: newStatus, lastUpdatedDate: serverTimestamp() },
|
||||
{ merge: true }
|
||||
|
||||
Reference in New Issue
Block a user