mirror of
https://github.com/ENSL/ensl.org.git
synced 2025-01-13 21:31:28 +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
|
end
|
||||||
|
|
||||||
if @user.nil?
|
if @user.nil?
|
||||||
render json: nil
|
render json: nil, status: :not_found
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue