[FIX] ensure batch isn't commited for every change
This commit is contained in:
1 parent
f0d4087eba
commit
ef687ec869
1 file changed
+1
@@ -949,6 +949,7 @@ exports.groupDeleted = functions.firestore.document("groups/{groupId}")
|
||||
if (counter >= 19) {
|
||||
batch.commit();
|
||||
batch = db.batch();
|
||||
counter = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user