From 4359f66ecee8003f0fa625fd5e293ba38cc133e3 Mon Sep 17 00:00:00 2001 From: Mario Orlicky Date: Sat, 19 Nov 2016 19:19:24 +0100 Subject: Fixed build --- client/components/users/userHeader.js | 4 ++-- models/users.js | 4 ++-- server/publications/activities.js | 10 +++++----- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/client/components/users/userHeader.js b/client/components/users/userHeader.js index a2682a5f..1f2f1d9b 100644 --- a/client/components/users/userHeader.js +++ b/client/components/users/userHeader.js @@ -87,11 +87,11 @@ Template.changeLanguagePopup.events({ Template.changeSettingsPopup.helpers({ hiddenSystemMessages() { return Meteor.user().hasHiddenSystemMessages(); - } + }, }); Template.changeSettingsPopup.events({ - 'click .js-toggle-system-messages'(evt) { + 'click .js-toggle-system-messages'() { Meteor.call('toggleSystemMessages'); }, }); diff --git a/models/users.js b/models/users.js index 6c9ad297..a65a2566 100644 --- a/models/users.js +++ b/models/users.js @@ -61,7 +61,7 @@ Users.attachSchema(new SimpleSchema({ }, 'profile.hiddenSystemMessages': { type: Boolean, - optional: true + optional: true, }, 'profile.initials': { type: String, @@ -296,7 +296,7 @@ Meteor.methods({ } }, toggleSystemMessages() { - user = Meteor.user(); + const user = Meteor.user(); user.toggleSystem(user.hasHiddenSystemMessages()); }, }); diff --git a/server/publications/activities.js b/server/publications/activities.js index eb5415cf..14459bf8 100644 --- a/server/publications/activities.js +++ b/server/publications/activities.js @@ -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}, - }); -}); \ No newline at end of file + limit, + sort: {createdAt: -1}, + }); +}); -- cgit v1.2.3-1-g7c22