diff options
author | mayjs <johannes.may@udo.edu> | 2017-05-15 18:45:24 +0200 |
---|---|---|
committer | mayjs <johannes.may@udo.edu> | 2017-05-15 18:45:24 +0200 |
commit | 158f19b67cfcc62e67927c4cbe75f5732e672a3c (patch) | |
tree | 9d1f6159c7d41ab1ae9f84cfa08a58f2668fb9e1 /models | |
parent | fa928956c2e9bfd21b18f973eded49775ce33e86 (diff) | |
download | wekan-158f19b67cfcc62e67927c4cbe75f5732e672a3c.tar.gz wekan-158f19b67cfcc62e67927c4cbe75f5732e672a3c.tar.bz2 wekan-158f19b67cfcc62e67927c4cbe75f5732e672a3c.zip |
let -> const
Diffstat (limited to 'models')
-rw-r--r-- | models/boards.js | 2 | ||||
-rw-r--r-- | models/users.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/models/boards.js b/models/boards.js index e0fd81dd..914ded93 100644 --- a/models/boards.js +++ b/models/boards.js @@ -560,7 +560,7 @@ if (Meteor.isServer) { // TODO: This should be changed to be less restrictive! Authentication.checkUserId(req.userId); - let data = Boards.find({ + const data = Boards.find({ archived: false, 'members.userId': req.userId, // TODO: How does the current authentication system work? Can we rely on req.userId to be correct? }, { diff --git a/models/users.js b/models/users.js index 55d0095e..01709f49 100644 --- a/models/users.js +++ b/models/users.js @@ -529,7 +529,7 @@ if (Meteor.isServer) { if (Meteor.isServer) { JsonRoutes.add('GET', '/api/user', function(req, res, next) { Authentication.checkLoggedIn(req.userId); - let data = Meteor.users.findOne({ _id: req.userId}); + const data = Meteor.users.findOne({ _id: req.userId}); delete data.services; JsonRoutes.sendResult(res, { code: 200, |