From e142acfdb745747c020a1bd5b1974b619d5bdb6d Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Sun, 22 Dec 2019 09:44:58 +0200 Subject: Remove LINKED_CARDS_ENABLED settings, because it does not work. Thanks to xet7 ! --- server/publications/cards.js | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) (limited to 'server') 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 }); +}); -- cgit v1.2.3-1-g7c22