Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Buczynski committed Jul 17, 2016
1 parent 7e304ad commit 17b4ff5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/components/user/user.ctrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,7 @@ module.exports = {
exists(req, res, next) {
User.find(req.body).limit(1)
.then(users => (users.length > 0))
.then(exists => {
res.json({exists: exists});
})
.then(exists => res.json({exists}))
.catch(next);
},

Expand All @@ -138,7 +136,7 @@ module.exports = {
if (!req.me) {
return setTimeout(() => {
res.end();
}, 1000);
}, 1234);
}

//Get user
Expand Down

0 comments on commit 17b4ff5

Please sign in to comment.