fix: don't crash when no attachment, oops

This commit is contained in:
Julian Lam
2024-02-16 15:59:04 -05:00
parent e5b6ee97bd
commit 0edaf17c6a

View File

@@ -86,6 +86,10 @@ Notes.updateLocalRecipients = async (id, { to, cc }) => {
};
Notes.saveAttachments = async (id, attachments) => {
if (!attachments) {
return;
}
const bulkOps = {
hash: [],
zset: {