getting and storing the string for the navigation modes not the xids
This commit is contained in:
@@ -54,7 +54,7 @@ export const EquipmentDto = z.object({
|
||||
|
||||
/* ================= NAVIGATION MODE ================= */
|
||||
export const NavigationModeDto = z.object({
|
||||
navigationModeXid: z.number().int(),
|
||||
navigationModeName: z.string().optional(),
|
||||
isChargeable: z.boolean().optional(),
|
||||
totalPrice: z.number().int().optional().default(0),
|
||||
});
|
||||
|
||||
@@ -2415,15 +2415,9 @@ export class HostService {
|
||||
},
|
||||
select: {
|
||||
id: true,
|
||||
navigationModeName: true,
|
||||
isInActivityChargeable: true,
|
||||
navigationModesTotalPrice: true,
|
||||
navigationMode: {
|
||||
select: {
|
||||
id: true,
|
||||
navigationModeName: true,
|
||||
navigationModeIcon: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
equipmentAvailable: true,
|
||||
@@ -3747,7 +3741,7 @@ export class HostService {
|
||||
const navMode = await tx.activityNavigationModes.create({
|
||||
data: {
|
||||
activityXid,
|
||||
navigationModeXid: mode.navigationModeXid,
|
||||
navigationModeName: mode.navigationModeName,
|
||||
isInActivityChargeable: isChargeable,
|
||||
navigationModesBasePrice: basePrice,
|
||||
navigationModesTotalPrice: totalPrice,
|
||||
|
||||
Reference in New Issue
Block a user