Skip to content

Commit

Permalink
fix: return a 404 when no user is found fixes angular-fullstack#711
Browse files Browse the repository at this point in the history
  • Loading branch information
dotch committed Nov 27, 2014
1 parent b986998 commit 38c0d7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/templates/server/api/user(auth)/user.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ exports.show = function(req, res, next) {
User.findByIdAsync(userId)
.then(function(user) {
if (!user) {
return res.send(401);
return res.send(404);
}
res.json(user.profile);
})
Expand Down

0 comments on commit 38c0d7c

Please sign in to comment.