Fix johns debug query

This commit is contained in:
John Pinkyfloyd 2026-02-09 14:30:37 -08:00
parent 133f57f689
commit 696cb90ba9

View file

@ -5,7 +5,7 @@
<cfquery name="qBiz" datasource="payfrit">
SELECT ID, Name, BeaconShardID, BeaconMajor
FROM Businesses
WHERE Name LIKE '%john%beverages%' OR Name LIKE '%john\'s beverages%'
WHERE Name LIKE '%john%'
</cfquery>
<cfif qBiz.recordCount EQ 0>
@ -13,6 +13,15 @@
<cfabort>
</cfif>
<cfif qBiz.recordCount GT 1>
<cfset bizList = []>
<cfloop query="qBiz">
<cfset arrayAppend(bizList, { "ID": qBiz.ID, "Name": qBiz.Name })>
</cfloop>
<cfoutput>#serializeJSON({ "OK": false, "ERROR": "Multiple businesses found", "Businesses": bizList })#</cfoutput>
<cfabort>
</cfif>
<cfquery name="qSP" datasource="payfrit">
SELECT ID, Name, BeaconMinor, IsActive
FROM ServicePoints