Browse Source

fixup! Ref: original & and use fileObj.meta

David Arnold 4 years ago
parent
commit
4929653367
1 changed files with 2 additions and 2 deletions
  1. 2 2
      models/cards.js

+ 2 - 2
models/cards.js

@@ -739,12 +739,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 } },
       );
     }