mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-20 07:11:12 -05:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user