Update DigestEmailWorker to compile and send emails via queue

This commit is contained in:
Roman Chvanikov 2019-07-14 22:32:11 +03:00
commit b052a9d4d0
2 changed files with 10 additions and 7 deletions

View file

@ -27,7 +27,7 @@ defmodule Mix.Tasks.Pleroma.Digest do
patched_user = %{user | last_digest_emailed_at: last_digest_emailed_at}
:ok = Pleroma.DigestEmailWorker.run([patched_user])
_user = Pleroma.DigestEmailWorker.perform(patched_user)
Mix.shell().info("Digest email have been sent to #{nickname} (#{user.email})")
end
end