Fix usage checking job

pull/1018/head
Uku Taht 6 years ago
parent 1d53648896
commit 0fb8f09b41

@ -54,7 +54,12 @@ defmodule Plausible.Workers.CheckUsage do
if last_last_month > allowance && last_month > allowance do
{_, last_cycle} = billing_mod.last_two_billing_cycles(subscriber)
template = PlausibleWeb.Email.over_limit_email(subscriber, last_month, last_cycle)
Plausible.Mailer.send_email(template)
try do
Plausible.Mailer.send_email(template)
rescue
_ -> nil
end
end
end

Loading…
Cancel
Save