-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d4bf8f8
commit 4b7e1b2
Showing
3 changed files
with
12 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
import { ElasticsearchModule } from "./elasticsearch/elasticsearch.module"; | ||
import { JwtModule } from "./jwt/jwt.module"; | ||
import { KafkaModule } from "./kafka/kafka.module"; | ||
import { MailerModule } from "./mailer/mailer.module"; | ||
import { PassportModule } from "./passport/passport.module"; | ||
import { RedisModule } from "./redis/redis.module"; | ||
|
||
export { | ||
ElasticsearchModule, | ||
JwtModule, | ||
KafkaModule, | ||
MailerModule, | ||
PassportModule, | ||
RedisModule | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
import { Module } from "@nestjs/common"; | ||
import { ConfigModule } from "@nestjs/config"; | ||
import { MailerModule } from "@nestjs-modules/mailer"; | ||
import { MailerModule as NestMailerModule } from "@nestjs-modules/mailer"; | ||
import { MailerConfig } from "@src/config"; | ||
import { MailerConfigService } from "@src/config/modules/mailer/mailer.config.service.ts"; | ||
|
||
import { MailService } from "./mailer.service"; | ||
import { MailerService } from "./mailer.service"; | ||
|
||
@Module({ | ||
imports: [ | ||
ConfigModule.forFeature(MailerConfig), | ||
MailerModule.forRootAsync({ | ||
NestMailerModule.forRootAsync({ | ||
imports: [ConfigModule.forFeature(MailerConfig)], | ||
useClass: MailerConfigService | ||
}) | ||
], | ||
providers: [ | ||
{ | ||
provide: "MailService", | ||
useClass: MailService | ||
provide: "MailerService", | ||
useClass: MailerService | ||
} | ||
], | ||
exports: ["MailService"] | ||
exports: ["MailerService"] | ||
}) | ||
export class MailModule {} | ||
export class MailerModule {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters