From d4f666f384add9da4ac8fcbbab962a9d9c8bc646 Mon Sep 17 00:00:00 2001 From: Nishant Arora Date: Sun, 15 Jan 2017 21:05:39 +0530 Subject: [PATCH] Users PUT endpoint syntax error --- api/users.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/users.js b/api/users.js index 45d373e..b9e99d8 100755 --- a/api/users.js +++ b/api/users.js @@ -115,6 +115,7 @@ module.exports = function(app) { code: 'B135', data: collection.toJSON() }) + }) .catch(function (error) { res.status(500).json({ error: { @@ -127,7 +128,6 @@ module.exports = function(app) { } }) }); - }); }); app.delete('/users',function(req,res){