mirror of
https://github.com/wekan/wekan.git
synced 2025-12-18 08:20:12 +01:00
let -> const
This commit is contained in:
parent
fa928956c2
commit
158f19b67c
2 changed files with 2 additions and 2 deletions
|
|
@ -560,7 +560,7 @@ if (Meteor.isServer) {
|
||||||
// TODO: This should be changed to be less restrictive!
|
// TODO: This should be changed to be less restrictive!
|
||||||
Authentication.checkUserId(req.userId);
|
Authentication.checkUserId(req.userId);
|
||||||
|
|
||||||
let data = Boards.find({
|
const data = Boards.find({
|
||||||
archived: false,
|
archived: false,
|
||||||
'members.userId': req.userId, // TODO: How does the current authentication system work? Can we rely on req.userId to be correct?
|
'members.userId': req.userId, // TODO: How does the current authentication system work? Can we rely on req.userId to be correct?
|
||||||
}, {
|
}, {
|
||||||
|
|
|
||||||
|
|
@ -529,7 +529,7 @@ if (Meteor.isServer) {
|
||||||
if (Meteor.isServer) {
|
if (Meteor.isServer) {
|
||||||
JsonRoutes.add('GET', '/api/user', function(req, res, next) {
|
JsonRoutes.add('GET', '/api/user', function(req, res, next) {
|
||||||
Authentication.checkLoggedIn(req.userId);
|
Authentication.checkLoggedIn(req.userId);
|
||||||
let data = Meteor.users.findOne({ _id: req.userId});
|
const data = Meteor.users.findOne({ _id: req.userId});
|
||||||
delete data.services;
|
delete data.services;
|
||||||
JsonRoutes.sendResult(res, {
|
JsonRoutes.sendResult(res, {
|
||||||
code: 200,
|
code: 200,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue