From 3214239caad02e17031fbcbf47b6338adaf9f514 Mon Sep 17 00:00:00 2001 From: Prommah Date: Thu, 24 Sep 2015 04:03:24 +0100 Subject: [PATCH] Skip unnecessary condenser lookups --- app/controllers/api/v1/users_controller.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/controllers/api/v1/users_controller.rb b/app/controllers/api/v1/users_controller.rb index 7c992d2..accc35f 100755 --- a/app/controllers/api/v1/users_controller.rb +++ b/app/controllers/api/v1/users_controller.rb @@ -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,