mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 06:13:34 -05:00
Merge pull request #20695 from overleaf/bg-issue15972
Await knex.transaction for deleteProjectChunks in history-v1 GitOrigin-RevId: fcf342c5d1e0e9beed35c75d0317f8cba5976e24
This commit is contained in:
parent
1c30f17042
commit
37806a9505
1 changed files with 1 additions and 1 deletions
|
@ -200,7 +200,7 @@ async function deleteProjectChunks(projectId) {
|
||||||
projectId = parseInt(projectId, 10)
|
projectId = parseInt(projectId, 10)
|
||||||
assert.integer(projectId, 'bad projectId')
|
assert.integer(projectId, 'bad projectId')
|
||||||
|
|
||||||
knex.transaction(async tx => {
|
await knex.transaction(async tx => {
|
||||||
await _deleteChunks(knex, { doc_id: projectId })
|
await _deleteChunks(knex, { doc_id: projectId })
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue