mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-20 08:11:13 -05:00
Refactor: Redeploy edge function
This commit is contained in:
@@ -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 { 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 { createClient } from "https://esm.sh/@supabase/supabase-js@2.57.4";
|
||||||
import { createErrorResponse } from "../_shared/errorSanitizer.ts";
|
import { createErrorResponse } from "../_shared/errorSanitizer.ts";
|
||||||
@@ -849,6 +849,16 @@ serve(withRateLimit(async (req) => {
|
|||||||
// Merge temp refs for this item
|
// Merge temp refs for this item
|
||||||
...(tempRefsByItemId.get(item.id) || {})
|
...(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;
|
break;
|
||||||
case 'ride':
|
case 'ride':
|
||||||
itemData = {
|
itemData = {
|
||||||
|
|||||||
Reference in New Issue
Block a user