Merge remote-tracking branch 'origin' into feature/tracking

This commit is contained in:
Linus Flood
2024-12-13 09:02:37 +01:00
329 changed files with 4494 additions and 1910 deletions
+3 -3
View File
@@ -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,
},