From dd85e7b386a73d99e83da9378b8e938eccc39521 Mon Sep 17 00:00:00 2001 From: John Pinkyfloyd Date: Mon, 9 Feb 2026 12:13:29 -0800 Subject: [PATCH] Add debug endpoint for La Serenata beacon setup --- api/debug/serenata.cfm | 54 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 api/debug/serenata.cfm diff --git a/api/debug/serenata.cfm b/api/debug/serenata.cfm new file mode 100644 index 0000000..e33da5b --- /dev/null +++ b/api/debug/serenata.cfm @@ -0,0 +1,54 @@ + + + + + + + SELECT ID, Name, BeaconShardID, BeaconMajor + FROM Businesses + WHERE Name LIKE '%serenata%' + + + + #serializeJSON({ "OK": false, "ERROR": "No business found" })# + + + + + SELECT ID, UUID, IsActive + FROM BeaconShards + WHERE ID = + + + + SELECT ID, Name, BeaconMinor, IsActive + FROM ServicePoints + WHERE BusinessID = + ORDER BY SortOrder, Name + + + + + + + +#serializeJSON({ + "OK": true, + "Business": { + "ID": qBiz.ID, + "Name": qBiz.Name, + "BeaconShardID": val(qBiz.BeaconShardID), + "BeaconMajor": val(qBiz.BeaconMajor) + }, + "Shard": qShard.recordCount GT 0 ? { + "ID": qShard.ID, + "UUID": qShard.UUID, + "IsActive": qShard.IsActive + } : "NOT FOUND", + "ServicePoints": spList +})#