Friends, search

This commit is contained in:
paoloar77
2022-01-12 00:38:47 +01:00
parent 3b6218d2ba
commit 4158731731
5 changed files with 75 additions and 22 deletions

View File

@@ -1256,6 +1256,12 @@ module.exports = {
filtriadded.push(...params.filtersearch);
}
if (params.options) {
if (this.isBitActive(params.options, shared_consts.OPTIONS_SEARCH_ONLY_FULL_WORDS)) {
}
}
if (filtriadded) {
if (filtriadded.length > 0)
query.push({$match: {$and: filtriadded}});