diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/publications/cards.js | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/server/publications/cards.js b/server/publications/cards.js index f850ccfe..61210ce5 100644 --- a/server/publications/cards.js +++ b/server/publications/cards.js @@ -1,17 +1,4 @@ -if (process.env.LINKED_CARDS_ENABLED === 'false') { - Meteor.settings.public.linkedCardsEnabled = 'false'; - //Meteor.publish('card', cardId => { - // check(cardId, String); - // // TODO: test - // return Cards.find({ - // _id: cardId, - // linkedId: { $ne: [null, ''] }, - // }); - //}); -} else { - Meteor.settings.public.linkedCardsEnabled = 'true'; - Meteor.publish('card', cardId => { - check(cardId, String); - return Cards.find({ _id: cardId }); - }); -} +Meteor.publish('card', cardId => { + check(cardId, String); + return Cards.find({ _id: cardId }); +}); |