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.
This commit is contained in:
gpt-engineer-app[bot]
2025-11-06 14:24:48 +00:00
parent 9159b2ce89
commit 9f5240ae95

View File

@@ -1556,6 +1556,7 @@ async function createPark(supabase: any, data: any): Promise<string> {
.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,