From be17fe6c31e70749097226d0d5b2c48a02caead9 Mon Sep 17 00:00:00 2001 From: Bai Date: Mon, 17 Jul 2023 17:08:06 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E9=82=AE=E4=BB=B6=E5=90=8C=E6=AD=A5?= =?UTF-8?q?=E5=8F=91=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/notifications/backends/email.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/notifications/backends/email.py b/apps/notifications/backends/email.py index 0d8e0ca79..ee821fbfa 100644 --- a/apps/notifications/backends/email.py +++ b/apps/notifications/backends/email.py @@ -11,7 +11,7 @@ class Email(BackendBase): from_email = settings.EMAIL_FROM or settings.EMAIL_HOST_USER accounts, __, __ = self.get_accounts(users) subject = (settings.EMAIL_SUBJECT_PREFIX or '') + subject - send_mail_async.delay(subject, message, from_email, accounts, html_message=message) + send_mail_async(subject, message, from_email, accounts, html_message=message) backend = Email