perf: 批量设置定时,支持清除定时

This commit is contained in:
xiaojunnuo
2025-12-16 00:21:31 +08:00
parent e4e16bc6a6
commit 63d8bcf882
5 changed files with 72 additions and 27 deletions
@@ -25,13 +25,16 @@ export class EmailNotification extends BaseNotification {
const templateData = {
...body,
}
const emailSend:any = {
receivers: this.receivers,
}
if (body.attachments && body.attachments.length > 0) {
emailSend.attachments = body.attachments;
}
await this.ctx.emailService.sendByTemplate({
type: body.notificationType,
data: templateData,
email: {
receivers: this.receivers,
attachments: body.attachments,
}
email: emailSend
})
// await this.ctx.emailService.send({