v1.6.0/release
clean up users fix
This commit is contained in:
@@ -15,7 +15,7 @@ module.exports = async (partyName) => {
|
|||||||
.collection("rooms")
|
.collection("rooms")
|
||||||
.doc(partyName)
|
.doc(partyName)
|
||||||
.collection("users");
|
.collection("users");
|
||||||
const partyUsersQuery = partyUsersRef.orderBy("time").limit(200);
|
const partyUsersQuery = partyUsersRef.limit(200);
|
||||||
await deleteCollection(partyUsersQuery);
|
await deleteCollection(partyUsersQuery);
|
||||||
// DELETE PARTY DOC
|
// DELETE PARTY DOC
|
||||||
await admin.firestore().collection("rooms").doc(partyName).delete();
|
await admin.firestore().collection("rooms").doc(partyName).delete();
|
||||||
|
|||||||
Reference in New Issue
Block a user