Commit 571f07ab authored by lain's avatar lain
Browse files

Try refresh all invalid subscriptions.

This is a temporary fix to prevent intermittent problems from cutting
off subscriptions.
parent e4a4135c
......@@ -212,7 +212,7 @@ def refresh_subscriptions(delta \\ 60 * 60 * 24) do
cut_off = NaiveDateTime.add(NaiveDateTime.utc_now, delta)
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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment