Merge pull request #103 from Prommah/master

Fix users API when nothing found
This commit is contained in:
Absurdon 2017-09-30 00:59:35 +02:00 committed by GitHub
commit db129bc95a

View file

@ -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?