This commit is contained in:
mr
2026-03-04 13:02:53 +01:00
parent 334de8ca2e
commit 473dc62660
2 changed files with 5 additions and 1 deletions

View File

@@ -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
}