Sfoglia il codice sorgente

update Cards.helpers - comments()

Ben0it-T 3 anni fa
parent
commit
ec51f7cced
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 5 0
      models/cards.js

+ 5 - 0
models/cards.js

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