[#1149] Oban mailer job. Adjusted tests.

This commit is contained in:
Ivan Tashkinov 2019-08-14 21:42:21 +03:00
commit a180c1360e
7 changed files with 35 additions and 1 deletions

View file

@ -233,6 +233,7 @@ defmodule Pleroma.Application do
defp after_supervisor_start do
with digest_config <- Application.get_env(:pleroma, :email_notifications)[:digest],
true <- digest_config[:active] do
# TODO: consider replacing with `quantum` scheduler
PleromaJobQueue.schedule(
digest_config[:schedule],
:digest_emails,