Fixed build

This commit is contained in:
Mario Orlicky 2016-11-19 19:19:24 +01:00
parent 8290dcb249
commit 4359f66ece
3 changed files with 9 additions and 9 deletions

View file

@ -11,9 +11,9 @@ Meteor.publish('activities', (kind, id, limit, hideSystem) => {
check(limit, Number);
check(hideSystem, Boolean);
let selector = (hideSystem) ? {$and: [{activityType: 'addComment'}, {[`${kind}Id`]: id}]} : {[`${kind}Id`]: id};
const selector = (hideSystem) ? {$and: [{activityType: 'addComment'}, {[`${kind}Id`]: id}]} : {[`${kind}Id`]: id};
return Activities.find(selector, {
limit,
sort: {createdAt: -1},
});
});
limit,
sort: {createdAt: -1},
});
});