mirror of
https://github.com/ENSL/ensl.org.git
synced 2025-01-26 11:11:20 +00:00
Merge pull request #103 from Prommah/master
Fix users API when nothing found
This commit is contained in:
commit
db129bc95a
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