mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-01-20 03:41:27 +00:00
fix(backend): fix active categories when inproperly configured (#9123)
Co-authored-by: Wolfgang Huß <wolle.huss@pjannto.com>
This commit is contained in:
parent
3d00ae4e25
commit
b7604e9af5
@ -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})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user