[FIX] ensure batch isn't commited for every change
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user