perf: 5进程同时进行

This commit is contained in:
archer
2023-04-04 21:41:55 +08:00
parent b13c3c4da5
commit 943abbe0fb
4 changed files with 19 additions and 9 deletions

View File

@@ -34,7 +34,7 @@ export const sendCode = (email: string, code: string, type: `${EmailTypeEnum}`)
};
mailTransport.sendMail(options, function (err, msg) {
if (err) {
console.log('error->', err);
console.log('send email error->', err);
reject('邮箱异常');
} else {
resolve('');
@@ -53,7 +53,7 @@ export const sendTrainSucceed = (email: string, modelName: string) => {
};
mailTransport.sendMail(options, function (err, msg) {
if (err) {
console.log('error->', err);
console.log('send email error->', err);
reject('邮箱异常');
} else {
resolve('');