Merge remote-tracking branch 'origin' into feature/tracking
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { z } from "zod"
|
||||
|
||||
import { ChildBedTypeEnum, PaymentMethodEnum } from "@/constants/booking"
|
||||
import { ChildBedTypeEnum ,type PaymentMethodEnum } from "@/constants/booking"
|
||||
import { dt } from "@/lib/dt"
|
||||
import { toLang } from "@/server/utils"
|
||||
|
||||
@@ -514,7 +514,7 @@ const linksSchema = z.object({
|
||||
export const priceSchema = z.object({
|
||||
pricePerNight: z.coerce.number(),
|
||||
pricePerStay: z.coerce.number(),
|
||||
currency: z.string(),
|
||||
currency: z.nativeEnum(CurrencyEnum),
|
||||
})
|
||||
|
||||
export const productTypePriceSchema = z.object({
|
||||
@@ -530,7 +530,7 @@ const productSchema = z.object({
|
||||
rateCode: "",
|
||||
rateType: "",
|
||||
localPrice: {
|
||||
currency: "SEK",
|
||||
currency: CurrencyEnum.SEK,
|
||||
pricePerNight: 0,
|
||||
pricePerStay: 0,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user