decode
This commit is contained in:
@@ -133,7 +133,7 @@ func GenericLoadOne[T DBObject](id string, data T, f func(DBObject) (DBObject, i
|
||||
return nil, code, err
|
||||
}
|
||||
fmt.Println("APPLY", data, res_mongo)
|
||||
if err = res_mongo.Decode(&data); err != nil {
|
||||
if err = res_mongo.Decode(data); err != nil {
|
||||
return nil, 400, err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user