mayjs пре 8 година
родитељ
комит
158f19b67c
2 измењених фајлова са 2 додато и 2 уклоњено
  1. 1 1
      models/boards.js
  2. 1 1
      models/users.js

+ 1 - 1
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?
         }, {

+ 1 - 1
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,