This commit is contained in:
@@ -6,13 +6,10 @@ module.exports = {
|
||||
// / is de home
|
||||
if (path == "/") return 1
|
||||
|
||||
// all other sites are in db
|
||||
path = path?.replace(/^\//, "")
|
||||
|
||||
// filter for path or alternativePaths
|
||||
const resp = context.db.find("content", {
|
||||
filter: {
|
||||
$or: [{ path }, { "alternativePaths.path": path }],
|
||||
$or: [{ path }],
|
||||
},
|
||||
selector: { _id: 1 },
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user