Skip to content

Commit

Permalink
Merge branch 'develop' into duplicate-image
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohit3523 authored Nov 17, 2024
2 parents e4b3090 + 1abd1b3 commit 9dd961d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/lib/methods/getCustomEmojis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const updateEmojis = async ({ update = [], remove = [], allRecords }: IUpdateEmo

try {
await db.write(async () => {
await db.batch(emojisToCreate, ...emojisToUpdate, ...emojisToDelete);
await db.batch([...emojisToCreate, ...emojisToUpdate, ...emojisToDelete]);
});
return true;
} catch (e) {
Expand Down
2 changes: 1 addition & 1 deletion app/lib/methods/loadThreadMessages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export function loadThreadMessages({ tmid, rid }: { tmid: string; rid: string })
});

await db.write(async () => {
await db.batch(threadMessagesToCreate, ...threadMessagesToUpdate);
await db.batch([...threadMessagesToCreate, ...threadMessagesToUpdate]);
});
} catch (e) {
log(e);
Expand Down

0 comments on commit 9dd961d

Please sign in to comment.