From b7604e9af57cde11b07c01a5727a82f93b5af352 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Mon, 19 Jan 2026 12:29:26 +0100 Subject: [PATCH] fix(backend): fix active categories when inproperly configured (#9123) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Wolfgang Huß --- backend/src/graphql/resolvers/posts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/graphql/resolvers/posts.ts b/backend/src/graphql/resolvers/posts.ts index af807b041..7d419fcbb 100644 --- a/backend/src/graphql/resolvers/posts.ts +++ b/backend/src/graphql/resolvers/posts.ts @@ -154,7 +154,7 @@ export default { )` } const categoriesCypher = - config.CATEGORIES_ACTIVE && categoryIds + config.CATEGORIES_ACTIVE && categoryIds && categoryIds.length > 0 ? `WITH post UNWIND $categoryIds AS categoryId MATCH (category:Category {id: categoryId})