archiving room nicely

This commit is contained in:
Arjun Patel
2022-01-17 16:17:14 -08:00
parent bc30fcf038
commit e892f139a1
3 changed files with 1041 additions and 779 deletions
+9
View File
@@ -38,4 +38,13 @@ export default class RoomService {
{ merge: true }
);
}
async updateRoom(room: Room) {
const docRef = doc(this.db, Collections.rooms, room.id);
await setDoc(
docRef,
{ ...room, lastUpdatedDate: serverTimestamp() },
{ merge: true }
);
}
}