diff --git a/services/history-v1/storage/lib/chunk_store/postgres.js b/services/history-v1/storage/lib/chunk_store/postgres.js index 835ec8c171..f6eead7354 100644 --- a/services/history-v1/storage/lib/chunk_store/postgres.js +++ b/services/history-v1/storage/lib/chunk_store/postgres.js @@ -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 }) }) }