forked from AkkomaGang/akkoma
Try refresh all invalid subscriptions.
This is a temporary fix to prevent intermittent problems from cutting off subscriptions.
This commit is contained in:
parent
e4a4135c1d
commit
571f07abe3
1 changed files with 1 additions and 1 deletions
|
@ -212,7 +212,7 @@ def refresh_subscriptions(delta \\ 60 * 60 * 24) do
|
||||||
cut_off = NaiveDateTime.add(NaiveDateTime.utc_now, delta)
|
cut_off = NaiveDateTime.add(NaiveDateTime.utc_now, delta)
|
||||||
|
|
||||||
query = from sub in WebsubClientSubscription,
|
query = from sub in WebsubClientSubscription,
|
||||||
where: sub.valid_until < ^cut_off and sub.state == "accepted"
|
where: sub.valid_until < ^cut_off
|
||||||
|
|
||||||
subs = Repo.all(query)
|
subs = Repo.all(query)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue