Remove LINKED_CARDS_ENABLED settings, because it does not work.

Thanks to xet7 !
This commit is contained in:
Lauri Ojansivu 2019-12-22 09:44:58 +02:00
parent e928660bc0
commit e142acfdb7
13 changed files with 10 additions and 59 deletions

View file

@ -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 });
});