From 4929653367cf6f89f64bf34f60e3073b1cdc252b Mon Sep 17 00:00:00 2001 From: David Arnold Date: Wed, 16 Sep 2020 18:19:56 -0500 Subject: [PATCH] fixup! Ref: original & and use fileObj.meta --- models/cards.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/cards.js b/models/cards.js index ce67128f7..ab8d6a53f 100644 --- a/models/cards.js +++ b/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 } }, ); }