mirror of
https://github.com/pagefaultgames/rogueserver.git
synced 2025-02-22 16:41:28 +08:00
Fix voucher compensation logic
This commit is contained in:
parent
72151d9c01
commit
ba7ab22d4d
@ -94,6 +94,8 @@ func handleSavedataUpdate(uuid []byte, slot int, save any) error {
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to serialize save: %s", err)
|
||||
}
|
||||
|
||||
db.DeleteClaimedAccountCompensations(uuid)
|
||||
case defs.SessionSaveData: // Session
|
||||
if slot < 0 || slot >= sessionSlotCount {
|
||||
return fmt.Errorf("slot id %d out of range", slot)
|
||||
@ -127,8 +129,6 @@ func handleSavedataUpdate(uuid []byte, slot int, save any) error {
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to serialize save: %s", err)
|
||||
}
|
||||
|
||||
db.DeleteClaimedAccountCompensations(uuid)
|
||||
default:
|
||||
return fmt.Errorf("invalid data type")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user