chore: add new service to add subs to danak services in array
This commit is contained in:
@@ -7,20 +7,20 @@ export function mailerConfig(): MailerAsyncOptions {
|
||||
inject: [ConfigService],
|
||||
useFactory: (configService: ConfigService) => ({
|
||||
transport: {
|
||||
host: configService.get("SMTP_HOST"),
|
||||
port: configService.get("SMTP_PORT"),
|
||||
host: configService.getOrThrow<string>("SMTP_HOST"),
|
||||
port: configService.getOrThrow<number>("SMTP_PORT"),
|
||||
secure: false,
|
||||
auth: {
|
||||
user: configService.get("SMTP_USER"),
|
||||
pass: configService.get("SMTP_PASS"),
|
||||
user: configService.getOrThrow<string>("SMTP_USER"),
|
||||
pass: configService.getOrThrow<string>("SMTP_PASS"),
|
||||
},
|
||||
},
|
||||
defaults: {
|
||||
from: configService.get("MAIL_FROM"),
|
||||
from: configService.getOrThrow<string>("MAIL_FROM"),
|
||||
},
|
||||
|
||||
template: {
|
||||
dir: __dirname + "/templates",
|
||||
dir: process.cwd() + "/templates",
|
||||
adapter: new HandlebarsAdapter(),
|
||||
options: {
|
||||
strict: true,
|
||||
|
||||
Reference in New Issue
Block a user