default bson
This commit is contained in:
parent
27327019be
commit
b0f5c78e55
@ -275,6 +275,9 @@ func (m *MongoDB) Search(filters dbs.Filters, collection_name string) (*mongo.Cu
|
||||
f := bson.D{
|
||||
{"$or", orList},
|
||||
}
|
||||
if len(orList) == 0 {
|
||||
f = bson.D{}
|
||||
}
|
||||
for k, filter := range filters.And {
|
||||
f = append(f, bson.E{
|
||||
k, bson.M{
|
||||
|
Loading…
Reference in New Issue
Block a user