quick fixes to statuses updating

This commit is contained in:
Arjun Patel
2022-01-17 18:22:05 -08:00
parent 8644a5fa8a
commit 3e60426ba6
2 changed files with 11 additions and 3 deletions
+2 -2
View File
@@ -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 }