fix(backend): fix active categories when inproperly configured (#9123)

Co-authored-by: Wolfgang Huß <wolle.huss@pjannto.com>
This commit is contained in:
Ulf Gebhardt 2026-01-19 12:29:26 +01:00 committed by GitHub
parent 3d00ae4e25
commit b7604e9af5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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})