Procházet zdrojové kódy

fixup! Ref: original & and use fileObj.meta

David Arnold před 4 roky
rodič
revize
9de430fdc1
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      models/cards.js

+ 2 - 2
models/cards.js

@@ -738,12 +738,12 @@ Cards.helpers({
   attachments() {
     if (this.isLinkedCard()) {
       return Attachments.find(
-        { cardId: this.linkedId },
+        { 'meta.cardId': this.linkedId },
         { sort: { uploadedAt: -1 } },
       );
     } else {
       return Attachments.find(
-        { cardId: this._id },
+        { 'meta.cardId': this._id },
         { sort: { uploadedAt: -1 } },
       );
     }