mirror of
https://github.com/wekan/wekan.git
synced 2025-12-24 03:10:12 +01:00
fixup! Ref: original & and use fileObj.meta
This commit is contained in:
parent
13a6067081
commit
9de430fdc1
1 changed files with 2 additions and 2 deletions
|
|
@ -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 } },
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue