Skip to content

Commit

Permalink
feat: Add configuration for email and SMS in notification module
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetsagdur committed Jul 10, 2024
1 parent 27cf5a1 commit 023955a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/notification.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,18 @@ import { EmailModule } from './email/email.module';
import { Module } from '@nestjs/common';
import { NotificationService } from './notification.service';
import { SmsModule } from './sms/sms.module';
import { ConfigModule } from '@nestjs/config';
import { emailConfig, smsConfig } from './config';

@Module({
imports: [EmailModule, SmsModule],
imports: [
EmailModule,
SmsModule,
ConfigModule.forRoot({
isGlobal: true,
load: [emailConfig, smsConfig],
}),
],
providers: [
{ provide: 'NotificationService', useClass: NotificationService },
],
Expand Down

0 comments on commit 023955a

Please sign in to comment.