mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Update scripts/rearchive-all-docs.js
Co-authored-by: Jakob Ackermann <jakob.ackermann@overleaf.com>
This commit is contained in:
parent
0911011624
commit
1988d0afb5
1 changed files with 2 additions and 6 deletions
|
@ -78,12 +78,8 @@ async function rearchiveAllDocs() {
|
|||
if (!new RegExp('^[0-9a-fA-F]{24}$').test(endId)) {
|
||||
throw new Error('Invalid end object id')
|
||||
}
|
||||
query._id = {
|
||||
...(query._id || {}),
|
||||
...{
|
||||
$lte: ObjectId(endId)
|
||||
}
|
||||
}
|
||||
query._id = query._id || {}
|
||||
query._id.$lte = ObjectId(endId)
|
||||
console.log(`Stopping at object ID ${endId}`)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue