mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 11:31:41 +00:00
Merge branch 'issue-13105' into 'rails'
fix: renovar el token #13105 See merge request sutty/sutty!156
This commit is contained in:
commit
a598050b1e
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ class RenewDistributedPressTokensJob < ApplicationJob
|
||||||
# detener la tarea si algo pasa.
|
# detener la tarea si algo pasa.
|
||||||
def perform
|
def perform
|
||||||
DistributedPressPublisher.with_about_to_expire_tokens.find_each do |publisher|
|
DistributedPressPublisher.with_about_to_expire_tokens.find_each do |publisher|
|
||||||
publisher.touch
|
publisher.save
|
||||||
rescue DistributedPress::V1::Error => e
|
rescue DistributedPress::V1::Error => e
|
||||||
data = { instance: publisher.instance, expires_at: publisher.client.token.expires_at }
|
data = { instance: publisher.instance, expires_at: publisher.client.token.expires_at }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue