feat: filter route changes

This commit is contained in:
Fredrik Thorsson
2024-08-06 10:16:46 +02:00
parent c7bef7d1cf
commit 798d19d3c8
5 changed files with 37 additions and 39 deletions

View File

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