mirror of
https://github.com/ENSL/ensl.org.git
synced 2025-01-13 21:31:28 +00:00
Skip unnecessary condenser lookups
This commit is contained in:
parent
0cc6718406
commit
3214239caa
1 changed files with 3 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue