Fixing rollback

pull/13/head
gamray 2024-05-13 21:03:24 +02:00
parent d1fb726b7a
commit 8d32873f02
1 changed files with 3 additions and 1 deletions

View File

@ -170,7 +170,9 @@ func UpdateAccountEggs(uuid []byte, eggs []defs.EggData) error {
if err != nil {
return err
}
defer tx.Rollback()
defer tx.Rollback()
for _, egg := range eggs {
// TODO: find a fix to enforce encoding from body to EggData only if
// it respects the EggData struct so we can get rid of the test