always delete claimed vouchers

pull/14/head
Up 7 months ago
parent a063b1740c
commit 76e7ba02ad
No known key found for this signature in database
GPG Key ID: 3B75CD7439FEB388

@ -47,6 +47,11 @@ func Update(uuid []byte, slot int, save any) error {
return fmt.Errorf("failed to update account stats: %s", err) 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) return db.StoreSystemSaveData(uuid, save)
case defs.SessionSaveData: // Session case defs.SessionSaveData: // Session

Loading…
Cancel
Save