Fix users API when nothing found

This commit is contained in:
Prommah 2017-09-29 22:43:14 +02:00
parent 62fe368b13
commit 8a49948af1

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?