Merge pull request #12277 from overleaf/jpa-cleanup-batched-update-interface

[web] simplify interface for custom update function in batchedUpdate

GitOrigin-RevId: a00a24a012db400d4161de0bcefa2681206ab296
This commit is contained in:
Jakob Ackermann
2023-03-23 09:04:29 +00:00
committed by Copybot
parent a140e3dc8c
commit 5d9923ad1b
16 changed files with 27 additions and 25 deletions
@@ -161,7 +161,7 @@ async function batchedUpdate(
}
if (typeof update === 'function') {
await update(collection, nextBatch)
await update(nextBatch)
} else {
await performUpdate(collection, nextBatch, update)
}