pull/436/head
xiaojunnuo 2025-06-20 17:09:59 +08:00
parent dff76b8912
commit a03d0b6a4a
1 changed files with 2 additions and 2 deletions

View File

@ -452,12 +452,12 @@ export class Executor {
continue; continue;
} }
if (notification.type === "email") { if (notification.type === "email" && notification.options?.receivers) {
try { try {
await this.options.emailService?.send({ await this.options.emailService?.send({
subject, subject,
content, content,
receivers: notification.options.receivers, receivers: notification.options?.receivers,
}); });
} catch (e) { } catch (e) {
logger.error("send email error", e); logger.error("send email error", e);