using mgocrud interfaces instead of mgo
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user