From 090f6aca489406e96e0a15f0c764ba25edea88aa Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Thu, 6 Nov 2025 04:25:29 +0000 Subject: [PATCH] Refactor: Redeploy edge function --- .../functions/process-selective-approval/index.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/supabase/functions/process-selective-approval/index.ts b/supabase/functions/process-selective-approval/index.ts index 69a5d752..46288df8 100644 --- a/supabase/functions/process-selective-approval/index.ts +++ b/supabase/functions/process-selective-approval/index.ts @@ -1,4 +1,4 @@ -// Force redeployment: v101 - Inlined validation to fix bundling timeout +// Force redeployment: v102 - Schema refresh for temp_location_data column import { serve } from "https://deno.land/std@0.190.0/http/server.ts"; import { createClient } from "https://esm.sh/@supabase/supabase-js@2.57.4"; import { createErrorResponse } from "../_shared/errorSanitizer.ts"; @@ -849,6 +849,16 @@ serve(withRateLimit(async (req) => { // Merge temp refs for this item ...(tempRefsByItemId.get(item.id) || {}) }; + // DEBUG: Log what columns are present + edgeLogger.info('Park item data loaded', { + action: 'approval_park_data_debug', + itemId: item.id, + hasLocationId: !!itemData.location_id, + hasTempLocationData: !!itemData.temp_location_data, + tempLocationDataKeys: itemData.temp_location_data ? Object.keys(itemData.temp_location_data) : [], + parkSubmissionKeys: Object.keys((item as any).park_submission || {}), + requestId: tracking.requestId + }); break; case 'ride': itemData = {