From d1fb726b7a6b9c187541f1ba40a111a9d320f593 Mon Sep 17 00:00:00 2001 From: Gamray <52253862+GamrayW@users.noreply.github.com> Date: Mon, 13 May 2024 21:02:27 +0200 Subject: [PATCH] Update db/savedata.go Co-authored-by: Krystian Chmura <11900380+slsyy@users.noreply.github.com> --- db/savedata.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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