mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-13 07:27:43 +00:00
fix expiry
This commit is contained in:
parent
809b075804
commit
9b73c74486
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ func accountWorker(id int, rc *reddit.Client, db *sql.DB, logger *log.Logger, st
|
|||
if account.ExpiresAt < int64(now) {
|
||||
tokens, _ := rac.RefreshTokens()
|
||||
tx.Exec(`UPDATE accounts SET access_token = $1, refresh_token = $2, expires_at = $3 WHERE id = $4`,
|
||||
tokens.AccessToken, tokens.RefreshToken, now+3500, account.ID)
|
||||
tokens.AccessToken, tokens.RefreshToken, int64(now+3500), account.ID)
|
||||
}
|
||||
|
||||
t1 := time.Now()
|
||||
|
|
Loading…
Reference in a new issue