| author | Stephen Paul Weber
<singpolyma@singpolyma.net> 2024-11-07 04:42:30 UTC |
| committer | Stephen Paul Weber
<singpolyma@singpolyma.net> 2024-11-07 04:42:30 UTC |
| parent | b567138dc3c55ffa12869fdc8187f6338cac6b0f |
| snikket/persistence/browser.js | +1 | -1 |
diff --git a/snikket/persistence/browser.js b/snikket/persistence/browser.js index 3c3251d..dbf4689 100644 --- a/snikket/persistence/browser.js +++ b/snikket/persistence/browser.js @@ -313,7 +313,7 @@ const browser = (dbname, tokenize, stemmer) => { } else { result = await promisifyRequest(store.index("localId").openCursor(IDBKeyRange.only([account, update.localId, update.chatId]))); } - const lastFromSender = promisifyRequest(reactionStore.index("senders").openCursor(IDBKeyRange.bound( + const lastFromSender = await promisifyRequest(reactionStore.index("senders").openCursor(IDBKeyRange.bound( [account, update.chatId, update.serverId || update.localId, update.senderId], [account, update.chatId, update.serverId || update.localId, update.senderId, []] ), "prev"));