Skip unnecessary condenser lookups

This commit is contained in:
Prommah 2015-09-24 04:03:24 +01:00
parent 0cc6718406
commit 3214239caa

View file

@ -5,7 +5,9 @@ class Api::V1::UsersController < Api::V1::BaseController
def show
@user = User.find(params[:id])
@steam = steam_profile @user
if @user.steamid.present?
@steam = steam_profile @user
end
render json: {
id: @user.id,