Explorar o código

Try to fix Attachments.insert is not a function.

Thanks to ChrisMagnuson and xet7 !

Fixes #4432
Lauri Ojansivu %!s(int64=3) %!d(string=hai) anos
pai
achega
02e977f512
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      models/cards.js

+ 1 - 1
models/cards.js

@@ -585,8 +585,8 @@ Cards.helpers({
     // Copy attachments
     oldCard.attachments().forEach(att => {
       att.cardId = _id;
+      Attachments.insert(att);
       delete att._id;
-      return Attachments.insert(att);
     });
 
     // copy checklists