mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-22 03:37:43 +00:00
refresh client
This commit is contained in:
parent
3d41795636
commit
245c56eae0
1 changed files with 4 additions and 0 deletions
|
@ -267,6 +267,10 @@ func (c *Consumer) Consume(delivery rmq.Delivery) {
|
|||
}).Error("failed to refresh reddit tokens")
|
||||
return
|
||||
}
|
||||
|
||||
// Refresh client
|
||||
rac = c.reddit.NewAuthenticatedClient(tokens.RefreshToken, tokens.AccessToken)
|
||||
|
||||
err = c.pool.BeginFunc(ctx, func(tx pgx.Tx) error {
|
||||
stmt := `
|
||||
UPDATE accounts
|
||||
|
|
Loading…
Reference in a new issue