From e403e49487ed931a24cccef12a1ca7dea11753ba Mon Sep 17 00:00:00 2001 From: John Mizerek Date: Sun, 1 Mar 2026 11:11:44 -0800 Subject: [PATCH] Fix Toast OO_STATE: restaurant from ROOT_QUERY, prices from prices[] - Restaurant info is in ROOT_QUERY.restaurantV2(...) keys, not Restaurant:* top-level keys (Apollo cache format) - Prices are in item.prices array [4.50], not item.price scalar - Added null checks for imageUrls (can be null, not missing) - Fallback to title tag for business name Co-Authored-By: Claude Opus 4.6 --- api/setup/analyzeMenuUrl.cfm | 67 +++++++++++++++++++++++++++++++----- 1 file changed, 59 insertions(+), 8 deletions(-) diff --git a/api/setup/analyzeMenuUrl.cfm b/api/setup/analyzeMenuUrl.cfm index 2974b3a..bd5bdba 100644 --- a/api/setup/analyzeMenuUrl.cfm +++ b/api/setup/analyzeMenuUrl.cfm @@ -953,14 +953,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + - + @@ -1008,9 +1039,11 @@ - + - + + + @@ -1025,7 +1058,7 @@ - + @@ -1073,7 +1106,9 @@ - + + + @@ -1086,7 +1121,7 @@ - + @@ -1110,6 +1145,22 @@ + + + ]*>([^<]+)', pageHtml)> + + ]*>([^<]+).*', '\1')> + + + + + + + + + + +