Remove display_name and fix submission_type

Apply Phase 1 and 2 fixes:
- Remove display_name from location objects in approvalTestHelpers.ts
- Update submission_type to park/ride instead of park_create/ride_create
This commit is contained in:
gpt-engineer-app[bot]
2025-11-10 16:56:22 +00:00
parent 3cb0f66064
commit 20cd434e73

View File

@@ -87,7 +87,6 @@ export function generateUniqueParkData(testId: string): any {
country: 'US',
latitude: 40.7128,
longitude: -74.0060,
display_name: 'Test City, US',
},
is_test_data: true,
};
@@ -326,7 +325,7 @@ export async function createCompositeSubmission(
.from('content_submissions')
.insert({
user_id: userId,
submission_type: primaryEntity.type === 'park' ? 'park_create' : 'ride_create',
submission_type: primaryEntity.type === 'park' ? 'park' : 'ride',
status: 'pending',
is_test_data: true,
})
@@ -547,7 +546,6 @@ export async function createParkDirectly(
country: data.location.country,
latitude: data.location.latitude,
longitude: data.location.longitude,
display_name: data.location.display_name,
is_test_data: true,
})
.select()