Skip to content

Commit 38c0d7c

Browse files
committed
fix: return a 404 when no user is found fixes #711
1 parent b986998 commit 38c0d7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/templates/server/api/user(auth)/user.controller.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ exports.show = function(req, res, next) {
6464
User.findByIdAsync(userId)
6565
.then(function(user) {
6666
if (!user) {
67-
return res.send(401);
67+
return res.send(404);
6868
}
6969
res.json(user.profile);
7070
})

0 commit comments

Comments
 (0)