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-09-30 09:27:55 +01:00 committed by Copybot
parent 1c30f17042
commit 37806a9505

View file

@ -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 })
}) })
} }