fix: Trimming hotel ids from contentstack to avoid 404 errors when fetching hotel data
Approved-by: Linus Flood Approved-by: Matilda Landström
This commit is contained in:
@@ -106,7 +106,7 @@ export const includedHotelsSchema = z
|
||||
edges: z.array(
|
||||
z.object({
|
||||
node: z.object({
|
||||
hotel_page_id: z.string(),
|
||||
hotel_page_id: z.string().transform((id) => id.trim()),
|
||||
}),
|
||||
})
|
||||
),
|
||||
@@ -115,7 +115,7 @@ export const includedHotelsSchema = z
|
||||
edges: z.array(
|
||||
z.object({
|
||||
node: z.object({
|
||||
hotel_page_id: z.string(),
|
||||
hotel_page_id: z.string().transform((id) => id.trim()),
|
||||
}),
|
||||
})
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user