Skip to content
Snippets Groups Projects
Commit e135dfb0 authored by Hugo SUBTIL's avatar Hugo SUBTIL
Browse files

fix: or instead of and for filter search query

parent 1184295c
Branches
Tags
No related merge requests found
...@@ -23,7 +23,7 @@ export class StructuresService { ...@@ -23,7 +23,7 @@ export class StructuresService {
} else { } else {
query = [{ $text: { $search: searchString } }]; query = [{ $text: { $search: searchString } }];
} }
return this.structureModel.find({ $and: query }).exec(); return this.structureModel.find({ $or: query }).exec();
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment