mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: don't crash when no attachment, oops
This commit is contained in:
@@ -86,6 +86,10 @@ Notes.updateLocalRecipients = async (id, { to, cc }) => {
|
||||
};
|
||||
|
||||
Notes.saveAttachments = async (id, attachments) => {
|
||||
if (!attachments) {
|
||||
return;
|
||||
}
|
||||
|
||||
const bulkOps = {
|
||||
hash: [],
|
||||
zset: {
|
||||
|
||||
Reference in New Issue
Block a user