From 3c4bdd9a1c246222b0a9c6cfa4299bbdd4942381 Mon Sep 17 00:00:00 2001 From: jtricerolph Date: Sat, 4 Jul 2026 12:09:16 +0000 Subject: [PATCH] Room planner: fix category exclusion field name (category_id not site_category_id) NewBook API returns category_id on site objects; exclusion check was using the non-existent site_category_id field so excluded categories config never worked. Co-Authored-By: Claude Sonnet 4.6 --- backend/src/routes/rooms.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/routes/rooms.js b/backend/src/routes/rooms.js index 1477329..a2db666 100644 --- a/backend/src/routes/rooms.js +++ b/backend/src/routes/rooms.js @@ -180,7 +180,7 @@ export async function roomRoutes(app) { // Classify each site const rooms = [] for (const site of sites) { - const catId = String(site.site_category_id || '') + const catId = String(site.site_category_id ?? site.category_id ?? site.category?.id ?? '') const isExcluded = excludedCategories.includes(catId) if (isExcluded && hideExcluded) continue