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:
@@ -113,7 +113,10 @@ export const rawMetadataSchema = z.object({
|
||||
)
|
||||
.nullish(),
|
||||
blocks: metaDataBlocksSchema,
|
||||
hotel_page_id: z.string().nullish(),
|
||||
hotel_page_id: z
|
||||
.string()
|
||||
.nullish()
|
||||
.transform((id) => id?.trim() || null),
|
||||
hotelData: hotelAttributesSchema
|
||||
.pick({
|
||||
name: true,
|
||||
|
||||
Reference in New Issue
Block a user