mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-22 03:51: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',
|
country: 'US',
|
||||||
latitude: 40.7128,
|
latitude: 40.7128,
|
||||||
longitude: -74.0060,
|
longitude: -74.0060,
|
||||||
display_name: 'Test City, US',
|
|
||||||
},
|
},
|
||||||
is_test_data: true,
|
is_test_data: true,
|
||||||
};
|
};
|
||||||
@@ -326,7 +325,7 @@ export async function createCompositeSubmission(
|
|||||||
.from('content_submissions')
|
.from('content_submissions')
|
||||||
.insert({
|
.insert({
|
||||||
user_id: userId,
|
user_id: userId,
|
||||||
submission_type: primaryEntity.type === 'park' ? 'park_create' : 'ride_create',
|
submission_type: primaryEntity.type === 'park' ? 'park' : 'ride',
|
||||||
status: 'pending',
|
status: 'pending',
|
||||||
is_test_data: true,
|
is_test_data: true,
|
||||||
})
|
})
|
||||||
@@ -547,7 +546,6 @@ export async function createParkDirectly(
|
|||||||
country: data.location.country,
|
country: data.location.country,
|
||||||
latitude: data.location.latitude,
|
latitude: data.location.latitude,
|
||||||
longitude: data.location.longitude,
|
longitude: data.location.longitude,
|
||||||
display_name: data.location.display_name,
|
|
||||||
is_test_data: true,
|
is_test_data: true,
|
||||||
})
|
})
|
||||||
.select()
|
.select()
|
||||||
|
|||||||
Reference in New Issue
Block a user