fix nodemailer未new
This commit is contained in:
parent
e7cdcb2e60
commit
9471c129be
|
|
@ -1,7 +1,7 @@
|
|||
import { assert } from 'oak-domain/lib/utils/assert';
|
||||
import Nodemailer from './node-mailer';
|
||||
const EmailDict = {
|
||||
nodemailer: Nodemailer,
|
||||
nodemailer: new Nodemailer(),
|
||||
};
|
||||
/**
|
||||
* 注入一个其它发送邮件类
|
||||
|
|
|
|||
|
|
@ -5,7 +5,8 @@ const tslib_1 = require("tslib");
|
|||
const assert_1 = require("oak-domain/lib/utils/assert");
|
||||
const node_mailer_1 = tslib_1.__importDefault(require("./node-mailer"));
|
||||
const EmailDict = {
|
||||
nodemailer: node_mailer_1.default,
|
||||
nodemailer: new node_mailer_1.default(),
|
||||
|
||||
};
|
||||
/**
|
||||
* 注入一个其它发送邮件类
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import Email, { EmailOptions } from '../../types/Email';
|
|||
import Nodemailer from './node-mailer';
|
||||
|
||||
const EmailDict: Record<string, any> = {
|
||||
nodemailer: Nodemailer,
|
||||
nodemailer: new Nodemailer(),
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue