mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36: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) => {
|
Notes.saveAttachments = async (id, attachments) => {
|
||||||
|
if (!attachments) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const bulkOps = {
|
const bulkOps = {
|
||||||
hash: [],
|
hash: [],
|
||||||
zset: {
|
zset: {
|
||||||
|
|||||||
Reference in New Issue
Block a user