mirror of
https://github.com/ENSL/ensl.org.git
synced 2025-02-28 14:51:40 +00:00
Fix users API when nothing found
This commit is contained in:
parent
62fe368b13
commit
8a49948af1
1 changed files with 2 additions and 1 deletions
|
@ -14,7 +14,8 @@ class Api::V1::UsersController < Api::V1::BaseController
|
|||
end
|
||||
|
||||
if @user.nil?
|
||||
raise ActionController::RoutingError.new("User Not Found")
|
||||
render json: nil
|
||||
return
|
||||
end
|
||||
|
||||
if @user.steamid.present?
|
||||
|
|
Loading…
Reference in a new issue