5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-20 05:26:22 +00:00

Merge branch 'issue-13105' into panel.sutty.nl

This commit is contained in:
f 2023-04-15 11:21:46 -03:00
commit 96fa5bba77

View file

@ -7,7 +7,7 @@ class RenewDistributedPressTokensJob < ApplicationJob
# detener la tarea si algo pasa.
def perform
DistributedPressPublisher.with_about_to_expire_tokens.find_each do |publisher|
publisher.touch
publisher.save
rescue DistributedPress::V1::Error => e
data = { instance: publisher.instance, expires_at: publisher.client.token.expires_at }