From 37806a9505d6a63026f74cc16fa5da8d748279a2 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Mon, 30 Sep 2024 09:27:55 +0100 Subject: [PATCH] Merge pull request #20695 from overleaf/bg-issue15972 Await knex.transaction for deleteProjectChunks in history-v1 GitOrigin-RevId: fcf342c5d1e0e9beed35c75d0317f8cba5976e24 --- services/history-v1/storage/lib/chunk_store/postgres.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }) }) }