Merge pull request #2697 from justinr1234/patch-7

Fix #2688 subcard selector
This commit is contained in:
Lauri Ojansivu 2019-09-11 19:18:32 +03:00 committed by GitHub
commit db32f595fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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