mirror of
https://github.com/certd/certd.git
synced 2026-04-23 19:57:27 +08:00
perf: 批量设置定时,支持清除定时
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user