Merge pull request #20695 from overleaf/bg-issue15972

Await knex.transaction for deleteProjectChunks in history-v1

GitOrigin-RevId: fcf342c5d1e0e9beed35c75d0317f8cba5976e24
This commit is contained in:
Brian Gough
2024-10-01 08:04:52 +00:00
committed by Copybot
parent 1c30f17042
commit 37806a9505
@@ -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 })
})
}