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
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,7 @@ export class StructuresService {
} else {
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.
Finish editing this message first!
Please register or to comment