always delete claimed vouchers

master
Up 2024-05-15 04:27:53 +02:00
parent a063b1740c
commit 76e7ba02ad
No known key found for this signature in database
GPG Key ID: 3B75CD7439FEB388
1 changed files with 5 additions and 0 deletions

View File

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