mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-21 10:31:13 -05:00
Fix creation functions in submission flow
This commit is contained in:
@@ -215,7 +215,7 @@ export async function submitParkCreation(
|
||||
item_type: 'park',
|
||||
action_type: 'create',
|
||||
item_data: {
|
||||
...data,
|
||||
...extractChangedFields(data, {}),
|
||||
images: processedImages as unknown as Json
|
||||
},
|
||||
status: 'pending',
|
||||
@@ -378,7 +378,7 @@ export async function submitRideCreation(
|
||||
item_type: 'ride',
|
||||
action_type: 'create',
|
||||
item_data: {
|
||||
...data,
|
||||
...extractChangedFields(data, {}),
|
||||
images: processedImages as unknown as Json
|
||||
},
|
||||
status: 'pending',
|
||||
@@ -538,7 +538,7 @@ export async function submitRideModelCreation(
|
||||
item_type: 'ride_model',
|
||||
action_type: 'create',
|
||||
item_data: {
|
||||
...data,
|
||||
...extractChangedFields(data, {}),
|
||||
images: processedImages as unknown as Json
|
||||
},
|
||||
status: 'pending',
|
||||
@@ -665,7 +665,7 @@ export async function submitManufacturerCreation(
|
||||
item_type: 'manufacturer',
|
||||
action_type: 'create',
|
||||
item_data: {
|
||||
...data,
|
||||
...extractChangedFields(data, {}),
|
||||
company_type: 'manufacturer',
|
||||
images: processedImages as unknown as Json
|
||||
},
|
||||
@@ -773,7 +773,7 @@ export async function submitDesignerCreation(
|
||||
item_type: 'designer',
|
||||
action_type: 'create',
|
||||
item_data: {
|
||||
...data,
|
||||
...extractChangedFields(data, {}),
|
||||
company_type: 'designer',
|
||||
images: processedImages as unknown as Json
|
||||
},
|
||||
@@ -881,7 +881,7 @@ export async function submitOperatorCreation(
|
||||
item_type: 'operator',
|
||||
action_type: 'create',
|
||||
item_data: {
|
||||
...data,
|
||||
...extractChangedFields(data, {}),
|
||||
company_type: 'operator',
|
||||
images: processedImages as unknown as Json
|
||||
},
|
||||
@@ -989,7 +989,7 @@ export async function submitPropertyOwnerCreation(
|
||||
item_type: 'property_owner',
|
||||
action_type: 'create',
|
||||
item_data: {
|
||||
...data,
|
||||
...extractChangedFields(data, {}),
|
||||
company_type: 'property_owner',
|
||||
images: processedImages as unknown as Json
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user