Update DigestEmailWorker to compile and send emails via queue
This commit is contained in:
parent
168dc97c37
commit
b052a9d4d0
2 changed files with 10 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue