PR comments.
This commit is contained in:
parent
90da9f89c6
commit
e6c5a7ecd7
|
@ -57,10 +57,9 @@ export async function searchView(
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
} else {
|
} else
|
||||||
const operator = query.allOr ? "$or" : "$and"
|
|
||||||
query = {
|
query = {
|
||||||
[operator]: {
|
$and: {
|
||||||
conditions: [query, body.query],
|
conditions: [query, body.query],
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue