From c880f7c8e903c86677a2736dd51c688e5af2dab4 Mon Sep 17 00:00:00 2001 From: audric Date: Mon, 16 Aug 2021 11:14:39 +1000 Subject: [PATCH] fix timeout on saveSeenMessage job --- app/sql.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/sql.js b/app/sql.js index 97135ea85..14648edfb 100644 --- a/app/sql.js +++ b/app/sql.js @@ -1879,7 +1879,7 @@ function saveMessage(data) { return id; } -async function saveSeenMessageHashes(arrayOfHashes) { +function saveSeenMessageHashes(arrayOfHashes) { globalInstance.transaction(() => { map(arrayOfHashes, hashData => saveSeenMessageHash(hashData)); })(); @@ -1946,7 +1946,7 @@ function cleanSeenMessages() { }); } -async function saveMessages(arrayOfMessages) { +function saveMessages(arrayOfMessages) { globalInstance.transaction(() => { map(arrayOfMessages, message => saveMessage(message)); })();