using mgocrud interfaces instead of mgo

This commit is contained in:
2022-02-09 15:55:43 +01:00
parent 7b75e504ac
commit 119243297e
8 changed files with 22 additions and 27 deletions

View File

@@ -162,7 +162,7 @@ func _validateFilter(structT reflect.Type, f bson.M, checkValues bool) (bson.M,
valT := reflect.TypeOf(val)
if valT.Kind() == reflect.Slice {
l := len(val.([]interface{}))
newVal = make([]interface{}, l, l)
newVal = make([]interface{}, l)
for i := 0; i < l; i++ {
var err error
switch valF := val.([]interface{})[i].(type) {