diff --git a/models/peer/peer_mongo_accessor.go b/models/peer/peer_mongo_accessor.go index 43548fd..d784868 100644 --- a/models/peer/peer_mongo_accessor.go +++ b/models/peer/peer_mongo_accessor.go @@ -75,7 +75,7 @@ func (wfa *peerMongoAccessor) Search(filters *dbs.Filters, search string) ([]uti if err == nil { filters = &dbs.Filters{ Or: map[string][]dbs.Filter{ // search by name if no filters are provided - "state": {{Operator: dbs.LIKE.String(), Value: s}}, + "state": {{Operator: dbs.EQUAL.String(), Value: s}}, }, } } else {