fix error
This commit is contained in:
parent
23a7aadb6d
commit
898ef6c4c6
|
@ -103,7 +103,7 @@ class ClientSitesController < ApplicationController
|
||||||
def check_server_ability
|
def check_server_ability
|
||||||
site_num = params[:site_num]
|
site_num = params[:site_num]
|
||||||
store_token = params[:store_token]
|
store_token = params[:store_token]
|
||||||
site_name = params[:site_name]
|
site_name = params[:site_name]=='Orbit' ? (RegisteredSite.where(uid: store_token).first.title rescue params[:site_name]) : params[:site_name]
|
||||||
site_url = params[:site_url]
|
site_url = params[:site_url]
|
||||||
manager = ServerAbilityManager.where(store_token: store_token).first
|
manager = ServerAbilityManager.where(store_token: store_token).first
|
||||||
ability = manager.max_site_ability rescue 0
|
ability = manager.max_site_ability rescue 0
|
||||||
|
|
Loading…
Reference in New Issue