fix active categories when inpropperly configured

This commit is contained in:
Ulf Gebhardt 2026-01-18 01:11:07 +01:00
parent 855a049f90
commit 93352cca3e
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

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