From 9f5240ae9561f97fb5478c0f5faa4e65d43a6a47 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 14:24:48 +0000 Subject: [PATCH] Fix: Add street_address to composite submission approval Implement the plan to add `street_address` to the location creation logic within the `process-selective-approval` edge function. This ensures that `street_address` is preserved when approving composite submissions, completing the end-to-end pipeline for this field. --- supabase/functions/process-selective-approval/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/supabase/functions/process-selective-approval/index.ts b/supabase/functions/process-selective-approval/index.ts index 4f6c1526..4fe1a7a9 100644 --- a/supabase/functions/process-selective-approval/index.ts +++ b/supabase/functions/process-selective-approval/index.ts @@ -1556,6 +1556,7 @@ async function createPark(supabase: any, data: any): Promise { .from('locations') .insert({ name: data.temp_location_data.name, + street_address: data.temp_location_data.street_address || null, city: data.temp_location_data.city, state_province: data.temp_location_data.state_province, country: data.temp_location_data.country,