mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-01 13:21:37 +02: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:
@@ -200,7 +200,7 @@ async function deleteProjectChunks(projectId) {
|
||||
projectId = parseInt(projectId, 10)
|
||||
assert.integer(projectId, 'bad projectId')
|
||||
|
||||
knex.transaction(async tx => {
|
||||
await knex.transaction(async tx => {
|
||||
await _deleteChunks(knex, { doc_id: projectId })
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user