From 76e7ba02ade1706bb4c3726748ebde7cc421ff70 Mon Sep 17 00:00:00 2001 From: Up Date: Wed, 15 May 2024 04:27:53 +0200 Subject: [PATCH] always delete claimed vouchers --- api/savedata/update.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/api/savedata/update.go b/api/savedata/update.go index 58eee72..6876b57 100644 --- a/api/savedata/update.go +++ b/api/savedata/update.go @@ -47,6 +47,11 @@ func Update(uuid []byte, slot int, save any) error { return fmt.Errorf("failed to update account stats: %s", err) } + err = db.DeleteClaimedAccountCompensations(uuid) + if err != nil { + return fmt.Errorf("failed to delete claimed compensations: %s", err) + } + return db.StoreSystemSaveData(uuid, save) case defs.SessionSaveData: // Session