mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-26 04:21:36 +00:00
Made API return 404 when no user was found
This commit is contained in:
parent
db129bc95a
commit
6b5cafcbf0
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ class Api::V1::UsersController < Api::V1::BaseController
|
|||
end
|
||||
|
||||
if @user.nil?
|
||||
render json: nil
|
||||
render json: nil, status: :not_found
|
||||
return
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue