mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 04:57:07 -04:00
update Cards.helpers - comments()
This commit is contained in:
parent
3eb834c920
commit
ec51f7cced
1 changed files with 5 additions and 0 deletions
|
@ -721,6 +721,11 @@ Cards.helpers({
|
|||
{ cardId: this.linkedId },
|
||||
{ sort: { createdAt: -1 } },
|
||||
);
|
||||
} else if (this.isLinkedBoard()) {
|
||||
return CardComments.find(
|
||||
{ boardId: this.linkedId },
|
||||
{ sort: { createdAt: -1 } },
|
||||
);
|
||||
} else {
|
||||
return CardComments.find(
|
||||
{ cardId: this._id },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue