diff options
author | Lauri Ojansivu <x@xet7.org> | 2018-02-27 08:41:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-27 08:41:35 +0200 |
commit | 843381a36c75abaf46d87eec169863a9e80d968e (patch) | |
tree | 227773a9c62fc5c08dbed67b2102c178d1dbca65 /models/users.js | |
parent | 1efa66b58c2703772e39d0fca01dcb7f2f14a44c (diff) | |
parent | 59ba2111e87eca097ceb07e680ec4b671d0ac9d9 (diff) | |
download | wekan-843381a36c75abaf46d87eec169863a9e80d968e.tar.gz wekan-843381a36c75abaf46d87eec169863a9e80d968e.tar.bz2 wekan-843381a36c75abaf46d87eec169863a9e80d968e.zip |
Merge pull request #1510 from GhassenRjab/feature/fix-lint-warnings
Fix lint warnings
Diffstat (limited to 'models/users.js')
-rw-r--r-- | models/users.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/models/users.js b/models/users.js index 88a0627b..da8ca77c 100644 --- a/models/users.js +++ b/models/users.js @@ -600,7 +600,7 @@ if (Meteor.isServer) { // USERS REST API if (Meteor.isServer) { - JsonRoutes.add('GET', '/api/user', function(req, res, next) { + JsonRoutes.add('GET', '/api/user', function(req, res) { try { Authentication.checkLoggedIn(req.userId); const data = Meteor.users.findOne({ _id: req.userId}); @@ -618,7 +618,7 @@ if (Meteor.isServer) { } }); - JsonRoutes.add('GET', '/api/users', function (req, res, next) { + JsonRoutes.add('GET', '/api/users', function (req, res) { try { Authentication.checkUserId(req.userId); JsonRoutes.sendResult(res, { @@ -636,7 +636,7 @@ if (Meteor.isServer) { } }); - JsonRoutes.add('GET', '/api/users/:id', function (req, res, next) { + JsonRoutes.add('GET', '/api/users/:id', function (req, res) { try { Authentication.checkUserId(req.userId); const id = req.params.id; @@ -653,7 +653,7 @@ if (Meteor.isServer) { } }); - JsonRoutes.add('PUT', '/api/users/:id', function (req, res, next) { + JsonRoutes.add('PUT', '/api/users/:id', function (req, res) { try { Authentication.checkUserId(req.userId); const id = req.params.id; @@ -696,7 +696,7 @@ if (Meteor.isServer) { } }); - JsonRoutes.add('POST', '/api/users/', function (req, res, next) { + JsonRoutes.add('POST', '/api/users/', function (req, res) { try { Authentication.checkUserId(req.userId); const id = Accounts.createUser({ @@ -720,7 +720,7 @@ if (Meteor.isServer) { } }); - JsonRoutes.add('DELETE', '/api/users/:id', function (req, res, next) { + JsonRoutes.add('DELETE', '/api/users/:id', function (req, res) { try { Authentication.checkUserId(req.userId); const id = req.params.id; |