mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-25 02:00:10 +02: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:
@@ -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() } }
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user