Skip to content

Commit

Permalink
[Backend] Remove expired upgrade buffer
Browse files Browse the repository at this point in the history
The 72 hour buffer before resetting someone's account back to the
default values after an upgrade expires is no longer necessary. Files
aren't automatically deleted once the upgrade expires, so the buffer
doesn't really serve a purpose.
  • Loading branch information
benbusby committed Jan 20, 2025
1 parent 2fe3c45 commit d4b6f19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/db/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,7 @@ func CheckActiveUpgrades() {
return
}

if upgradeExp.Add(time.Hour * 72).Before(time.Now()) {
if upgradeExp.Before(time.Now()) {
// User doesn't have an active upgrade, set send to
// default amount
revertIDs = append(revertIDs, id)
Expand Down

0 comments on commit d4b6f19

Please sign in to comment.