diff --git a/keyserver/src/creators/message-creator.js b/keyserver/src/creators/message-creator.js index 5e43b13f52..cef5cf1b56 100644 --- a/keyserver/src/creators/message-creator.js +++ b/keyserver/src/creators/message-creator.js @@ -185,7 +185,7 @@ async function createMessages( creation, target_message) VALUES ${messageInsertRows} `; - const messageInsertPromise = dbQuery(messageInsertQuery); + await dbQuery(messageInsertQuery); const postMessageSendPromise = postMessageSend( viewer, @@ -204,7 +204,6 @@ async function createMessages( } await Promise.all([ - messageInsertPromise, updateRepliesCount(threadsToMessageIndices, newMessageDatas), viewer.isScriptViewer ? postMessageSendPromise : undefined, ]);