Browse Source

🐞 fix: 邮件发送失败不再返回错误

Pchen. 2 months ago
parent
commit
43bedaffbf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugin/Email/Email.js

+ 1 - 1
plugin/Email/Email.js

@@ -43,7 +43,7 @@ async function sendEmail(email, subject, content) {
                 if (i === config.email.length - 1) {
                     // 最后一个配置也失败了
                     logger.error(`邮件发送失败,所有邮箱配置均不可用`)
-                    return reject(error)
+                    return
                 }
                 // 否则继续下一个配置
             }