Skip to content
This repository was archived by the owner on Jul 29, 2026. It is now read-only.

Commit 38c0d7c

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
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)