Fix batching in getUnreadReactionsAndMarkRead

This commit is contained in:
Fedor Indutny 2021-12-20 16:15:36 +01:00 committed by GitHub
parent 9f15f26828
commit 3228e22428
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2181,7 +2181,7 @@ async function getUnreadReactionsAndMarkRead({
UPDATE reactions SET
unread = 0 WHERE rowid IN ( ${ids.map(() => '?').join(', ')} );
`
).run(idsToUpdate);
).run(ids);
});
return unreadMessages;