فهرست منبع

Fix #2688 subcard selector

justinr1234 6 سال پیش
والد
کامیت
4d967360b2
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      server/publications/boards.js

+ 1 - 1
server/publications/boards.js

@@ -138,7 +138,7 @@ Meteor.publishRelations('board', function(boardId, isArchived) {
       parentCards.selector = _ids => ({ parentId: _ids });
       parentCards.selector = _ids => ({ parentId: _ids });
       const boards = this.join(Boards);
       const boards = this.join(Boards);
       const subCards = this.join(Cards);
       const subCards = this.join(Cards);
-      subCards.selector = () => ({ archived: isArchived });
+      subCards.selector = _ids => ({ _id: _ids, archived: isArchived });
 
 
       this.cursor(
       this.cursor(
         Cards.find({
         Cards.find({