[FIX] ensure batch isn't commited for every change

This commit is contained in:
2021-10-21 22:21:01 +01:00
parent f0d4087eba
commit ef687ec869

View File

@@ -949,6 +949,7 @@ exports.groupDeleted = functions.firestore.document("groups/{groupId}")
if (counter >= 19) { if (counter >= 19) {
batch.commit(); batch.commit();
batch = db.batch(); batch = db.batch();
counter = 0;
} }
} }