Skip to content

Commit

Permalink
style: 💄 fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
sweatpotato13 committed Jan 19, 2025
1 parent d4bf8f8 commit 4b7e1b2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
2 changes: 2 additions & 0 deletions src/shared/modules/index.ts
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
};
14 changes: 7 additions & 7 deletions src/shared/modules/mailer/mailer.module.ts
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 {}
6 changes: 3 additions & 3 deletions src/shared/modules/mailer/mailer.service.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { Inject, Injectable } from "@nestjs/common";
import { ConfigType } from "@nestjs/config";
import { MailerService } from "@nestjs-modules/mailer";
import { MailerService as NestMailerService } from "@nestjs-modules/mailer";
import { MailerConfig } from "@src/config";

@Injectable()
export class MailService {
export class MailerService {
constructor(
@Inject(MailerConfig.KEY)
private readonly config: ConfigType<typeof MailerConfig>,
private readonly mailerService: MailerService
private readonly mailerService: NestMailerService
) {}

public sendVerifyMail(to: string): void {
Expand Down

0 comments on commit 4b7e1b2

Please sign in to comment.