chore: add new service to add subs to danak services in array

This commit is contained in:
mahyargdz
2025-02-13 13:27:21 +03:30
parent 95b9c38031
commit caa968ab4a
24 changed files with 317 additions and 98 deletions
+6 -6
View File
@@ -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,