summaryrefslogtreecommitdiffstats
path: root/models/users.js
diff options
context:
space:
mode:
authorGhassen Rjab <rjab.ghassen@gmail.com>2018-02-27 02:57:58 +0100
committerGhassen Rjab <rjab.ghassen@gmail.com>2018-02-27 02:57:58 +0100
commit59ba2111e87eca097ceb07e680ec4b671d0ac9d9 (patch)
tree227773a9c62fc5c08dbed67b2102c178d1dbca65 /models/users.js
parent1efa66b58c2703772e39d0fca01dcb7f2f14a44c (diff)
downloadwekan-59ba2111e87eca097ceb07e680ec4b671d0ac9d9.tar.gz
wekan-59ba2111e87eca097ceb07e680ec4b671d0ac9d9.tar.bz2
wekan-59ba2111e87eca097ceb07e680ec4b671d0ac9d9.zip
Fix lint warnings
Diffstat (limited to 'models/users.js')
-rw-r--r--models/users.js12
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;