mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #9864 from overleaf/msm-fix-audit-log
[scripts] fix audit log migration script GitOrigin-RevId: a7e32217385ac66a899e34eb3e0e8373bc802944
This commit is contained in:
parent
7d099acfdd
commit
b1937700cc
1 changed files with 6 additions and 4 deletions
|
@ -89,10 +89,12 @@ async function processUsersBatch(users, options) {
|
|||
}
|
||||
|
||||
await promiseMapWithLimit(options.writeConcurrency, users, async user => {
|
||||
const projects = await db.projects.find(
|
||||
{ owner_ref: user._id, auditLog: { $exists: true } },
|
||||
{ _id: 1, auditLog: 1 }
|
||||
)
|
||||
const projects = await db.projects
|
||||
.find(
|
||||
{ owner_ref: user._id, auditLog: { $exists: true } },
|
||||
{ _id: 1, auditLog: 1 }
|
||||
)
|
||||
.toArray()
|
||||
await processProjectsBatch(projects, options)
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue