default bson

This commit is contained in:
mr 2024-08-01 10:03:28 +02:00
parent 27327019be
commit b0f5c78e55

View File

@ -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{