From d37f99f2ba566603d6a154cbd2bebcf672bfc0fc Mon Sep 17 00:00:00 2001 From: Niclas Edenvin Date: Mon, 14 Oct 2024 12:56:11 +0000 Subject: [PATCH] Merged in feat/sw-590-update-room-configuration-schema (pull request #687) Rename bedType to roomTypeCode * Rename bedType to roomTypeCode Approved-by: Fredrik Thorsson --- server/routers/hotels/output.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/routers/hotels/output.ts b/server/routers/hotels/output.ts index 47c82c9b1..5692497f1 100644 --- a/server/routers/hotels/output.ts +++ b/server/routers/hotels/output.ts @@ -501,7 +501,8 @@ const productSchema = z.object({ const roomConfigurationSchema = z.object({ status: z.string(), - bedType: z.string(), + // TODO: Remove the optional when the API change has been deployed + roomTypeCode: z.string().optional(), roomType: z.string(), roomsLeft: z.number(), features: z.array(z.object({ inventory: z.number(), code: z.string() })),