Skip to content

Commit

Permalink
forgot to update stats column
Browse files Browse the repository at this point in the history
  • Loading branch information
UpcraftLP committed May 12, 2024
1 parent a44a6c3 commit 81853b1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api/savedata/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ func Get(uuid []byte, datatype, slot int) (any, error) {
if err != nil {
return nil, fmt.Errorf("failed to update system save data: %s", err)
}

err = db.UpdateAccountStats(uuid, system.GameStats, system.VoucherCounts)
if err != nil {
return nil, fmt.Errorf("failed to update account stats: %s", err)
}
}

return system, nil
Expand Down

0 comments on commit 81853b1

Please sign in to comment.