Merge branch 'massive-email-notification' into master
# Conflicts: # .env.example # apps/api/src/app.module.ts
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import { Module } from "@nestjs/common";
|
||||
import { ConfigService } from "@nestjs/config";
|
||||
import { MailService } from "./mail.service";
|
||||
|
||||
/** Global so any feature module can inject MailService without re-importing.
|
||||
* Matches the StorageService pattern: env-driven, null when unconfigured,
|
||||
* and never blocks API boot. Notifications use it; renewals reuse it. */
|
||||
@Module({
|
||||
providers: [{ provide: MailService, useFactory: (c: ConfigService) => new MailService(c) }],
|
||||
exports: [MailService],
|
||||
})
|
||||
export class MailModule {}
|
||||
Reference in New Issue
Block a user