Add all biz debug

This commit is contained in:
John Pinkyfloyd 2026-02-09 14:33:25 -08:00
parent a1c3e71db0
commit e03e021ea2

23
api/debug/all_biz.cfm Normal file
View file

@ -0,0 +1,23 @@
<cfsetting showdebugoutput="false">
<cfsetting enablecfoutputonly="true">
<cfcontent type="application/json; charset=utf-8" reset="true">
<cfquery name="q" datasource="payfrit">
SELECT ID, Name, BeaconShardID, BeaconMajor, IsDemo, IsPrivate
FROM Businesses
ORDER BY Name
</cfquery>
<cfset bizList = []>
<cfloop query="q">
<cfset arrayAppend(bizList, {
"ID": q.ID,
"Name": q.Name,
"BeaconShardID": val(q.BeaconShardID),
"BeaconMajor": val(q.BeaconMajor),
"IsDemo": q.IsDemo,
"IsPrivate": q.IsPrivate
})>
</cfloop>
<cfoutput>#serializeJSON({ "OK": true, "Count": q.recordCount, "Businesses": bizList })#</cfoutput>