From 6b31b1abcf542af4e6e6fe5c822532306b6b0656 Mon Sep 17 00:00:00 2001 From: John Mizerek Date: Wed, 28 Jan 2026 22:18:10 -0800 Subject: [PATCH] Remove time-based filtering from customer menu API Always return all active menus in the response so chip selector always appears. Show all items from all menus by default instead of filtering by current time, which caused empty results outside menu hours. Co-Authored-By: Claude Opus 4.5 --- api/menu/items.cfm | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/api/menu/items.cfm b/api/menu/items.cfm index 304b910..64307f5 100644 --- a/api/menu/items.cfm +++ b/api/menu/items.cfm @@ -87,26 +87,19 @@ - + - 0 - AND ( - (MenuStartTime IS NULL OR MenuEndTime IS NULL) - OR (TIME(:currentTime) >= MenuStartTime AND TIME(:currentTime) <= MenuEndTime) - ) ORDER BY MenuSortOrder, MenuName ", { - bizId: { value = BusinessID, cfsqltype = "cf_sql_integer" }, - dayBit: { value = 2 ^ (currentDayID - 1), cfsqltype = "cf_sql_integer" }, - currentTime: { value = currentTime, cfsqltype = "cf_sql_varchar" } + bizId: { value = BusinessID, cfsqltype = "cf_sql_integer" } }, { datasource = "payfrit" } )> @@ -114,13 +107,14 @@ - + + - - + +