feat: schema change

This commit is contained in:
Fredrik Thorsson
2024-08-06 12:49:50 +02:00
parent 798d19d3c8
commit 75011dffe5
4 changed files with 38 additions and 36 deletions

View File

@@ -483,11 +483,9 @@ export const getRatesSchema = z.array(rate)
export type Rate = z.infer<typeof rate>
const hotelFilter = z.object({
filterType: z.object({
roomFacilities: z.array(z.string()),
hotelFacilities: z.array(z.string()),
hotelSurroundings: z.array(z.string()),
}),
roomFacilities: z.array(z.string()),
hotelFacilities: z.array(z.string()),
hotelSurroundings: z.array(z.string()),
})
export const getFiltersSchema = hotelFilter