diff --git a/client/components/main/myCards.js b/client/components/main/myCards.js index 9753b01f0..91d5d5f72 100644 --- a/client/components/main/myCards.js +++ b/client/components/main/myCards.js @@ -31,6 +31,7 @@ BlazeComponent.extendComponent({ }, cardsFind() { + const userId = Meteor.userId(); const boards = []; let board = null; let swimlane = null; @@ -38,8 +39,8 @@ BlazeComponent.extendComponent({ const cursor = Cards.find( { - // archived: false, - // $or: [{ members: userId }, { assignees: userId }], + archived: false, + $or: [{ members: userId }, { assignees: userId }], }, { sort: { diff --git a/server/publications/cards.js b/server/publications/cards.js index 5b8cc3bd9..e9209f01e 100644 --- a/server/publications/cards.js +++ b/server/publications/cards.js @@ -14,6 +14,7 @@ Meteor.publish('myCards', function() { { fields: { _id: 1, + archived: 1, boardId: 1, swimlaneId: 1, listId: 1, @@ -22,6 +23,8 @@ Meteor.publish('myCards', function() { sort: 1, members: 1, assignees: 1, + colors: 1, + dueAt: 1, }, // sort: { // sort: ['boardId', 'listId', 'sort'],