fixed idToObjectID with null
This commit is contained in:
parent
161e3b46fb
commit
09b3faa8da
3
crud.go
3
crud.go
@ -78,6 +78,9 @@ func convertIDValue(v reflect.Value) reflect.Value {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func idToObjectID(filter interface{}) {
|
func idToObjectID(filter interface{}) {
|
||||||
|
if filter == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
//spew.Dump(filter)
|
//spew.Dump(filter)
|
||||||
val := reflect.ValueOf(filter)
|
val := reflect.ValueOf(filter)
|
||||||
switch reflect.TypeOf(filter).Kind() {
|
switch reflect.TypeOf(filter).Kind() {
|
||||||
|
Loading…
Reference in New Issue
Block a user