fixup! Ref: original & and use fileObj.meta

This commit is contained in:
David Arnold 2020-09-16 18:19:56 -05:00 committed by Denis Perov
parent 13a6067081
commit 9de430fdc1

View file

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