mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #12932 from overleaf/em-history-chunks-project-deletion
Use index when deleting project history chunks GitOrigin-RevId: 804b8fe8da8bab04a4c0e9fe0008c5554b51817e
This commit is contained in:
parent
a0e3379c86
commit
e323a22666
1 changed files with 1 additions and 1 deletions
|
@ -189,7 +189,7 @@ async function deleteProjectChunks(projectId) {
|
|||
assert.mongoId(projectId, 'bad projectId')
|
||||
|
||||
await mongodb.chunks.updateMany(
|
||||
{ projectId: ObjectId(projectId) },
|
||||
{ projectId: ObjectId(projectId), state: 'active' },
|
||||
{ $set: { state: 'deleted', updatedAt: new Date() } }
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue