Fix null BeaconShardID handling in debug endpoint
This commit is contained in:
parent
dd85e7b386
commit
b2187bde4e
1 changed files with 9 additions and 5 deletions
|
|
@ -14,11 +14,15 @@
|
||||||
<cfabort>
|
<cfabort>
|
||||||
</cfif>
|
</cfif>
|
||||||
|
|
||||||
<cfquery name="qShard" datasource="payfrit">
|
<cfif val(qBiz.BeaconShardID) GT 0>
|
||||||
SELECT ID, UUID, IsActive
|
<cfquery name="qShard" datasource="payfrit">
|
||||||
FROM BeaconShards
|
SELECT ID, UUID, IsActive
|
||||||
WHERE ID = <cfqueryparam cfsqltype="cf_sql_integer" value="#qBiz.BeaconShardID#">
|
FROM BeaconShards
|
||||||
</cfquery>
|
WHERE ID = <cfqueryparam cfsqltype="cf_sql_integer" value="#qBiz.BeaconShardID#">
|
||||||
|
</cfquery>
|
||||||
|
<cfelse>
|
||||||
|
<cfset qShard = queryNew("ID,UUID,IsActive")>
|
||||||
|
</cfif>
|
||||||
|
|
||||||
<cfquery name="qSP" datasource="payfrit">
|
<cfquery name="qSP" datasource="payfrit">
|
||||||
SELECT ID, Name, BeaconMinor, IsActive
|
SELECT ID, Name, BeaconMinor, IsActive
|
||||||
|
|
|
||||||
Reference in a new issue