Fix johns debug query
This commit is contained in:
parent
133f57f689
commit
696cb90ba9
1 changed files with 10 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Reference in a new issue