summaryrefslogtreecommitdiffstats
path: root/models/cards.js
diff options
context:
space:
mode:
Diffstat (limited to 'models/cards.js')
-rw-r--r--models/cards.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/models/cards.js b/models/cards.js
index 4c3e2c99..86d22c53 100644
--- a/models/cards.js
+++ b/models/cards.js
@@ -460,11 +460,10 @@ Cards.helpers({
{ sort: { uploadedAt: -1 } },
);
} else {
- const ret = Attachments.find(
+ let ret = Attachments.find(
{ 'meta.cardId': this._id },
{ sort: { uploadedAt: -1 } },
);
- if (ret.first()) console.log('link', Attachments.link(ret.first()));
return ret;
}
},