fix time.Time
fields not being saved
via adding a special case in the `serializeIDs` function (in document_internals.go)
This commit is contained in:
parent
11d31fbbc1
commit
d328bc3fbd
@ -83,10 +83,14 @@ func serializeIDs(input interface{}) interface{} {
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
if fv.Type() == reflect.TypeFor[time.Time]() {
|
||||
ret0[bbson.Name] = fv.Interface()
|
||||
} else {
|
||||
ret0[bbson.Name] = serializeIDs(fv.Interface())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ret = ret0
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user