Add all biz debug
This commit is contained in:
parent
a1c3e71db0
commit
e03e021ea2
1 changed files with 23 additions and 0 deletions
23
api/debug/all_biz.cfm
Normal file
23
api/debug/all_biz.cfm
Normal 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>
|
||||||
Reference in a new issue