update Cards.helpers - comments()

This commit is contained in:
Ben0it-T 2022-01-22 22:20:36 +01:00
parent 3eb834c920
commit ec51f7cced

View file

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