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>
|
||||
</cfif>
|
||||
|
||||
<cfif val(qBiz.BeaconShardID) GT 0>
|
||||
<cfquery name="qShard" datasource="payfrit">
|
||||
SELECT ID, UUID, IsActive
|
||||
FROM BeaconShards
|
||||
WHERE ID = <cfqueryparam cfsqltype="cf_sql_integer" value="#qBiz.BeaconShardID#">
|
||||
</cfquery>
|
||||
<cfelse>
|
||||
<cfset qShard = queryNew("ID,UUID,IsActive")>
|
||||
</cfif>
|
||||
|
||||
<cfquery name="qSP" datasource="payfrit">
|
||||
SELECT ID, Name, BeaconMinor, IsActive
|
||||
|
|
|
|||
Reference in a new issue