Skip to content

Commit

Permalink
Correctly remove rank cache entries on account delete.
Browse files Browse the repository at this point in the history
Ranks cache entries for leaderboards with no expiry are now correctly
removed on account delete.
  • Loading branch information
sesposito committed Oct 1, 2024
1 parent 0c94f92 commit 750981f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/core_leaderboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ func LeaderboardRecordsDeleteAll(ctx context.Context, logger *zap.Logger, leader
}

expiryUnix := expiryTime.Time.Unix()
if expiryUnix <= currentTime {
if expiryUnix != 0 && expiryUnix <= currentTime {
// Expired ranks are handled by the rank cache itself.
continue
}
Expand Down

0 comments on commit 750981f

Please sign in to comment.