mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-03 03:12:25 -06:00
fix token sweep not working
This commit is contained in:
parent
3363e0ebdd
commit
bfd5f1b56b
1 changed files with 1 additions and 1 deletions
|
|
@ -82,7 +82,7 @@ func (pts *tokenStore) sweep() error {
|
|||
// we only want to check if a token expired before now if the expiry time is *not zero*;
|
||||
// ie., if it's been explicity set.
|
||||
if !pgt.CodeExpiresAt.IsZero() && pgt.CodeExpiresAt.Before(now) || !pgt.RefreshExpiresAt.IsZero() && pgt.RefreshExpiresAt.Before(now) || !pgt.AccessExpiresAt.IsZero() && pgt.AccessExpiresAt.Before(now) {
|
||||
if err := pts.db.DeleteByID(pgt.ID, &pgt); err != nil {
|
||||
if err := pts.db.DeleteByID(pgt.ID, pgt); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue