mirror of https://github.com/certd/certd
chore:
parent
779db9da70
commit
a4c0b92777
|
@ -93,7 +93,7 @@
|
|||
"mysql": "^2.18.1",
|
||||
"nanoid": "^5.0.7",
|
||||
"node-forge": "^1.3.1",
|
||||
"nodemailer": "^6.9.3",
|
||||
"nodemailer": "^6.9.16",
|
||||
"pg": "^8.12.0",
|
||||
"psl": "^1.9.0",
|
||||
"qiniu": "^7.12.0",
|
||||
|
|
|
@ -6,7 +6,7 @@ import { logger } from '@certd/basic';
|
|||
import { isComm, isPlus } from '@certd/plus-core';
|
||||
|
||||
import nodemailer from 'nodemailer';
|
||||
import type SMTPConnection from 'nodemailer/lib/smtp-connection';
|
||||
import { SendMailOptions } from 'nodemailer';
|
||||
import { UserSettingsService } from '../../mine/service/user-settings-service.js';
|
||||
import { PlusService, SysSettingsService, SysSiteInfo } from '@certd/lib-server';
|
||||
import { getEmailSettings } from '../../sys/settings/fix.js';
|
||||
|
@ -25,7 +25,7 @@ export type EmailConfig = {
|
|||
};
|
||||
sender: string;
|
||||
usePlus?: boolean;
|
||||
} & SMTPConnection.Options;
|
||||
} & SendMailOptions;
|
||||
@Provide()
|
||||
@Scope(ScopeEnum.Request, { allowDowngrade: true })
|
||||
export class EmailService implements IEmailService {
|
||||
|
|
Loading…
Reference in New Issue