Merge pull request #6393 from overleaf/ta-backfill-user-properties

Backfill User Properties

GitOrigin-RevId: ea2ffeaaf71d5ce41c76a1bfb2f0014006ef0d08
This commit is contained in:
Jakob Ackermann
2022-01-26 09:03:06 +00:00
committed by Copybot
parent b2e18c92a6
commit cfaec97a3d
5 changed files with 85 additions and 17 deletions
@@ -95,8 +95,14 @@ async function batchedUpdate(
return updated
}
function batchedUpdateWithResultHandling(collection, query, update) {
batchedUpdate(collection, query, update)
function batchedUpdateWithResultHandling(
collection,
query,
update,
projection,
options
) {
batchedUpdate(collection, query, update, projection, options)
.then(updated => {
console.error({ updated })
process.exit(0)