diff --git a/db/savedata.go b/db/savedata.go index 1f407c9..4c0377b 100644 --- a/db/savedata.go +++ b/db/savedata.go @@ -170,7 +170,7 @@ func UpdateAccountEggs(uuid []byte, eggs []defs.EggData) error { if err != nil { return err } - +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