Merged in feat/SW-3127-meeting-room-sort-order (pull request #2634)

feat(SW-3127): use new sort order attribute

* feat(SW-3127): use new sort order attribute


Approved-by: Erik Tiekstra
This commit is contained in:
Matilda Landström
2025-08-20 08:46:16 +00:00
parent c6ed6d767e
commit 789818eefd
2 changed files with 4 additions and 2 deletions

View File

@@ -992,7 +992,9 @@ export const hotelQueryRouter = router({
metricsMeetingRooms.success()
return validatedMeetingRooms.data.data
return validatedMeetingRooms.data.data.sort(
(a, b) => a.attributes.sortOrder - b.attributes.sortOrder
)
},
env.CACHE_TIME_HOTELS
)

View File

@@ -40,7 +40,7 @@ export const meetingRoomsSchema = z.object({
})
),
lighting: z.string(),
sortOrder: z.number().optional(),
sortOrder: z.number(),
}),
id: z.string(),
type: z.string(),