diff options
author | Ghassen Rjab <rjab.ghassen@gmail.com> | 2018-02-27 02:57:58 +0100 |
---|---|---|
committer | Ghassen Rjab <rjab.ghassen@gmail.com> | 2018-02-27 02:57:58 +0100 |
commit | 59ba2111e87eca097ceb07e680ec4b671d0ac9d9 (patch) | |
tree | 227773a9c62fc5c08dbed67b2102c178d1dbca65 /models | |
parent | 1efa66b58c2703772e39d0fca01dcb7f2f14a44c (diff) | |
download | wekan-59ba2111e87eca097ceb07e680ec4b671d0ac9d9.tar.gz wekan-59ba2111e87eca097ceb07e680ec4b671d0ac9d9.tar.bz2 wekan-59ba2111e87eca097ceb07e680ec4b671d0ac9d9.zip |
Fix lint warnings
Diffstat (limited to 'models')
-rw-r--r-- | models/boards.js | 10 | ||||
-rw-r--r-- | models/cardComments.js | 8 | ||||
-rw-r--r-- | models/cards.js | 10 | ||||
-rw-r--r-- | models/checklists.js | 8 | ||||
-rw-r--r-- | models/integrations.js | 14 | ||||
-rw-r--r-- | models/lists.js | 8 | ||||
-rw-r--r-- | models/swimlanes.js | 8 | ||||
-rw-r--r-- | models/users.js | 12 |
8 files changed, 39 insertions, 39 deletions
diff --git a/models/boards.js b/models/boards.js index 55b0711c..8a7ae1aa 100644 --- a/models/boards.js +++ b/models/boards.js @@ -608,7 +608,7 @@ if (Meteor.isServer) { //BOARDS REST API if (Meteor.isServer) { - JsonRoutes.add('GET', '/api/users/:userId/boards', function (req, res, next) { + JsonRoutes.add('GET', '/api/users/:userId/boards', function (req, res) { try { Authentication.checkLoggedIn(req.userId); const paramUserId = req.params.userId; @@ -638,7 +638,7 @@ if (Meteor.isServer) { } }); - JsonRoutes.add('GET', '/api/boards', function (req, res, next) { + JsonRoutes.add('GET', '/api/boards', function (req, res) { try { Authentication.checkUserId(req.userId); JsonRoutes.sendResult(res, { @@ -659,7 +659,7 @@ if (Meteor.isServer) { } }); - JsonRoutes.add('GET', '/api/boards/:id', function (req, res, next) { + JsonRoutes.add('GET', '/api/boards/:id', function (req, res) { try { const id = req.params.id; Authentication.checkBoardAccess(req.userId, id); @@ -677,7 +677,7 @@ if (Meteor.isServer) { } }); - JsonRoutes.add('POST', '/api/boards', function (req, res, next) { + JsonRoutes.add('POST', '/api/boards', function (req, res) { try { Authentication.checkUserId(req.userId); const id = Boards.insert({ @@ -708,7 +708,7 @@ if (Meteor.isServer) { } }); - JsonRoutes.add('DELETE', '/api/boards/:id', function (req, res, next) { + JsonRoutes.add('DELETE', '/api/boards/:id', function (req, res) { try { Authentication.checkUserId(req.userId); const id = req.params.id; diff --git a/models/cardComments.js b/models/cardComments.js index 4d802748..b6cb10fa 100644 --- a/models/cardComments.js +++ b/models/cardComments.js @@ -87,7 +87,7 @@ if (Meteor.isServer) { //CARD COMMENT REST API if (Meteor.isServer) { - JsonRoutes.add('GET', '/api/boards/:boardId/cards/:cardId/comments', function (req, res, next) { + JsonRoutes.add('GET', '/api/boards/:boardId/cards/:cardId/comments', function (req, res) { try { Authentication.checkUserId( req.userId); const paramBoardId = req.params.boardId; @@ -111,7 +111,7 @@ if (Meteor.isServer) { } }); - JsonRoutes.add('GET', '/api/boards/:boardId/cards/:cardId/comments/:commentId', function (req, res, next) { + JsonRoutes.add('GET', '/api/boards/:boardId/cards/:cardId/comments/:commentId', function (req, res) { try { Authentication.checkUserId( req.userId); const paramBoardId = req.params.boardId; @@ -130,7 +130,7 @@ if (Meteor.isServer) { } }); - JsonRoutes.add('POST', '/api/boards/:boardId/cards/:cardId/comments', function (req, res, next) { + JsonRoutes.add('POST', '/api/boards/:boardId/cards/:cardId/comments', function (req, res) { try { Authentication.checkUserId( req.userId); const paramBoardId = req.params.boardId; @@ -160,7 +160,7 @@ if (Meteor.isServer) { } }); - JsonRoutes.add('DELETE', '/api/boards/:boardId/cards/:cardId/comments/:commentId', function (req, res, next) { + JsonRoutes.add('DELETE', '/api/boards/:boardId/cards/:cardId/comments/:commentId', function (req, res) { try { Authentication.checkUserId( req.userId); const paramBoardId = req.params.boardId; diff --git a/models/cards.js b/models/cards.js index 9b0969ec..544afca5 100644 --- a/models/cards.js +++ b/models/cards.js @@ -433,7 +433,7 @@ if (Meteor.isServer) { } //LISTS REST API if (Meteor.isServer) { - JsonRoutes.add('GET', '/api/boards/:boardId/lists/:listId/cards', function (req, res, next) { + JsonRoutes.add('GET', '/api/boards/:boardId/lists/:listId/cards', function (req, res) { const paramBoardId = req.params.boardId; const paramListId = req.params.listId; Authentication.checkBoardAccess(req.userId, paramBoardId); @@ -449,7 +449,7 @@ if (Meteor.isServer) { }); }); - JsonRoutes.add('GET', '/api/boards/:boardId/lists/:listId/cards/:cardId', function (req, res, next) { + JsonRoutes.add('GET', '/api/boards/:boardId/lists/:listId/cards/:cardId', function (req, res) { const paramBoardId = req.params.boardId; const paramListId = req.params.listId; const paramCardId = req.params.cardId; @@ -460,7 +460,7 @@ if (Meteor.isServer) { }); }); - JsonRoutes.add('POST', '/api/boards/:boardId/lists/:listId/cards', function (req, res, next) { + JsonRoutes.add('POST', '/api/boards/:boardId/lists/:listId/cards', function (req, res) { Authentication.checkUserId(req.userId); const paramBoardId = req.params.boardId; const paramListId = req.params.listId; @@ -493,7 +493,7 @@ if (Meteor.isServer) { } }); - JsonRoutes.add('PUT', '/api/boards/:boardId/lists/:listId/cards/:cardId', function (req, res, next) { + JsonRoutes.add('PUT', '/api/boards/:boardId/lists/:listId/cards/:cardId', function (req, res) { Authentication.checkUserId(req.userId); const paramBoardId = req.params.boardId; const paramCardId = req.params.cardId; @@ -527,7 +527,7 @@ if (Meteor.isServer) { }); - JsonRoutes.add('DELETE', '/api/boards/:boardId/lists/:listId/cards/:cardId', function (req, res, next) { + JsonRoutes.add('DELETE', '/api/boards/:boardId/lists/:listId/cards/:cardId', function (req, res) { Authentication.checkUserId(req.userId); const paramBoardId = req.params.boardId; const paramListId = req.params.listId; diff --git a/models/checklists.js b/models/checklists.js index 907ad7e8..7eb0a24f 100644 --- a/models/checklists.js +++ b/models/checklists.js @@ -258,7 +258,7 @@ if (Meteor.isServer) { //CARD COMMENT REST API if (Meteor.isServer) { - JsonRoutes.add('GET', '/api/boards/:boardId/cards/:cardId/checklists', function (req, res, next) { + JsonRoutes.add('GET', '/api/boards/:boardId/cards/:cardId/checklists', function (req, res) { try { Authentication.checkUserId( req.userId); const paramCardId = req.params.cardId; @@ -280,7 +280,7 @@ if (Meteor.isServer) { } }); - JsonRoutes.add('GET', '/api/boards/:boardId/cards/:cardId/checklists/:checklistId', function (req, res, next) { + JsonRoutes.add('GET', '/api/boards/:boardId/cards/:cardId/checklists/:checklistId', function (req, res) { try { Authentication.checkUserId( req.userId); const paramChecklistId = req.params.checklistId; @@ -298,7 +298,7 @@ if (Meteor.isServer) { } }); - JsonRoutes.add('POST', '/api/boards/:boardId/cards/:cardId/checklists', function (req, res, next) { + JsonRoutes.add('POST', '/api/boards/:boardId/cards/:cardId/checklists', function (req, res) { try { Authentication.checkUserId( req.userId); const paramCardId = req.params.cardId; @@ -329,7 +329,7 @@ if (Meteor.isServer) { } }); - JsonRoutes.add('DELETE', '/api/boards/:boardId/cards/:cardId/checklists/:checklistId', function (req, res, next) { + JsonRoutes.add('DELETE', '/api/boards/:boardId/cards/:cardId/checklists/:checklistId', function (req, res) { try { Authentication.checkUserId( req.userId); const paramCommentId = req.params.commentId; diff --git a/models/integrations.js b/models/integrations.js index 1be6af17..1062b93b 100644 --- a/models/integrations.js +++ b/models/integrations.js @@ -59,7 +59,7 @@ Integrations.allow({ //INTEGRATIONS REST API if (Meteor.isServer) { // Get all integrations in board - JsonRoutes.add('GET', '/api/boards/:boardId/integrations', function(req, res, next) { + JsonRoutes.add('GET', '/api/boards/:boardId/integrations', function(req, res) { try { const paramBoardId = req.params.boardId; Authentication.checkBoardAccess(req.userId, paramBoardId); @@ -79,7 +79,7 @@ if (Meteor.isServer) { }); // Get a single integration in board - JsonRoutes.add('GET', '/api/boards/:boardId/integrations/:intId', function(req, res, next) { + JsonRoutes.add('GET', '/api/boards/:boardId/integrations/:intId', function(req, res) { try { const paramBoardId = req.params.boardId; const paramIntId = req.params.intId; @@ -99,7 +99,7 @@ if (Meteor.isServer) { }); // Create a new integration - JsonRoutes.add('POST', '/api/boards/:boardId/integrations', function(req, res, next) { + JsonRoutes.add('POST', '/api/boards/:boardId/integrations', function(req, res) { try { const paramBoardId = req.params.boardId; Authentication.checkBoardAccess(req.userId, paramBoardId); @@ -126,7 +126,7 @@ if (Meteor.isServer) { }); // Edit integration data - JsonRoutes.add('PUT', '/api/boards/:boardId/integrations/:intId', function (req, res, next) { + JsonRoutes.add('PUT', '/api/boards/:boardId/integrations/:intId', function (req, res) { try { const paramBoardId = req.params.boardId; const paramIntId = req.params.intId; @@ -174,7 +174,7 @@ if (Meteor.isServer) { }); // Delete subscribed activities - JsonRoutes.add('DELETE', '/api/boards/:boardId/integrations/:intId/activities', function (req, res, next) { + JsonRoutes.add('DELETE', '/api/boards/:boardId/integrations/:intId/activities', function (req, res) { try { const paramBoardId = req.params.boardId; const paramIntId = req.params.intId; @@ -198,7 +198,7 @@ if (Meteor.isServer) { }); // Add subscribed activities - JsonRoutes.add('POST', '/api/boards/:boardId/integrations/:intId/activities', function (req, res, next) { + JsonRoutes.add('POST', '/api/boards/:boardId/integrations/:intId/activities', function (req, res) { try { const paramBoardId = req.params.boardId; const paramIntId = req.params.intId; @@ -222,7 +222,7 @@ if (Meteor.isServer) { }); // Delete integration - JsonRoutes.add('DELETE', '/api/boards/:boardId/integrations/:intId', function (req, res, next) { + JsonRoutes.add('DELETE', '/api/boards/:boardId/integrations/:intId', function (req, res) { try { const paramBoardId = req.params.boardId; const paramIntId = req.params.intId; diff --git a/models/lists.js b/models/lists.js index 7333db94..6f6996cb 100644 --- a/models/lists.js +++ b/models/lists.js @@ -201,7 +201,7 @@ if (Meteor.isServer) { //LISTS REST API if (Meteor.isServer) { - JsonRoutes.add('GET', '/api/boards/:boardId/lists', function (req, res, next) { + JsonRoutes.add('GET', '/api/boards/:boardId/lists', function (req, res) { try { const paramBoardId = req.params.boardId; Authentication.checkBoardAccess( req.userId, paramBoardId); @@ -224,7 +224,7 @@ if (Meteor.isServer) { } }); - JsonRoutes.add('GET', '/api/boards/:boardId/lists/:listId', function (req, res, next) { + JsonRoutes.add('GET', '/api/boards/:boardId/lists/:listId', function (req, res) { try { const paramBoardId = req.params.boardId; const paramListId = req.params.listId; @@ -242,7 +242,7 @@ if (Meteor.isServer) { } }); - JsonRoutes.add('POST', '/api/boards/:boardId/lists', function (req, res, next) { + JsonRoutes.add('POST', '/api/boards/:boardId/lists', function (req, res) { try { Authentication.checkUserId( req.userId); const paramBoardId = req.params.boardId; @@ -265,7 +265,7 @@ if (Meteor.isServer) { } }); - JsonRoutes.add('DELETE', '/api/boards/:boardId/lists/:listId', function (req, res, next) { + JsonRoutes.add('DELETE', '/api/boards/:boardId/lists/:listId', function (req, res) { try { Authentication.checkUserId( req.userId); const paramBoardId = req.params.boardId; diff --git a/models/swimlanes.js b/models/swimlanes.js index 68cd77da..72ef3f36 100644 --- a/models/swimlanes.js +++ b/models/swimlanes.js @@ -131,7 +131,7 @@ if (Meteor.isServer) { //SWIMLANE REST API if (Meteor.isServer) { - JsonRoutes.add('GET', '/api/boards/:boardId/swimlanes', function (req, res, next) { + JsonRoutes.add('GET', '/api/boards/:boardId/swimlanes', function (req, res) { try { const paramBoardId = req.params.boardId; Authentication.checkBoardAccess( req.userId, paramBoardId); @@ -154,7 +154,7 @@ if (Meteor.isServer) { } }); - JsonRoutes.add('GET', '/api/boards/:boardId/swimlanes/:swimlaneId', function (req, res, next) { + JsonRoutes.add('GET', '/api/boards/:boardId/swimlanes/:swimlaneId', function (req, res) { try { const paramBoardId = req.params.boardId; const paramSwimlaneId = req.params.swimlaneId; @@ -172,7 +172,7 @@ if (Meteor.isServer) { } }); - JsonRoutes.add('POST', '/api/boards/:boardId/swimlanes', function (req, res, next) { + JsonRoutes.add('POST', '/api/boards/:boardId/swimlanes', function (req, res) { try { Authentication.checkUserId( req.userId); const paramBoardId = req.params.boardId; @@ -195,7 +195,7 @@ if (Meteor.isServer) { } }); - JsonRoutes.add('DELETE', '/api/boards/:boardId/swimlanes/:swimlaneId', function (req, res, next) { + JsonRoutes.add('DELETE', '/api/boards/:boardId/swimlanes/:swimlaneId', function (req, res) { try { Authentication.checkUserId( req.userId); const paramBoardId = req.params.boardId; 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; |