diff --git a/keyserver/src/creators/message-creator.js b/keyserver/src/creators/message-creator.js --- a/keyserver/src/creators/message-creator.js +++ b/keyserver/src/creators/message-creator.js @@ -641,7 +641,7 @@ await createUpdates(readStatusUpdates); } -function updateLatestMessages(latestMessages: LatestMessages) { +async function updateLatestMessages(latestMessages: LatestMessages) { if (latestMessages.length === 0) { return; } @@ -694,7 +694,7 @@ query.append(SQL`WHERE `); query.append(mergeOrConditions(conditions)); - dbQuery(query); + await dbQuery(query); } export default createMessages;