Replace Pleroma.Jobs with pleroma_job_queue

This commit is contained in:
Egor 2019-03-29 12:46:05 +00:00 committed by lambda
commit 9a39d1d846
11 changed files with 24 additions and 283 deletions

View file

@ -6,7 +6,7 @@ defmodule Pleroma.Mailer do
use Swoosh.Mailer, otp_app: :pleroma
def deliver_async(email, config \\ []) do
Pleroma.Jobs.enqueue(:mailer, __MODULE__, [:deliver_async, email, config])
PleromaJobQueue.enqueue(:mailer, __MODULE__, [:deliver_async, email, config])
end
def perform(:deliver_async, email, config), do: deliver(email, config)