Moved OTP to SMS module

This commit is contained in:
SepehrYahyaee
2026-05-09 12:36:38 +03:30
parent 9e2cec5bc3
commit 74c91c73b6
7 changed files with 10 additions and 21 deletions

View File

@@ -3,6 +3,7 @@ import { MongooseModule } from "@nestjs/mongoose";
import { SmsTextDbService } from "./entities/db-service/sms-text.db.service";
import { SmsText, SmsTextSchema } from "./entities/schema/sms-text.schema";
import { SmsGatewayModule } from "./provider/sms-gateway.module";
import { OtpGeneratorService } from "./otp-generator.service";
import { SmsOrchestrationService } from "./sms-orchestration.service";
@Module({
@@ -10,7 +11,7 @@ import { SmsOrchestrationService } from "./sms-orchestration.service";
SmsGatewayModule,
MongooseModule.forFeature([{ name: SmsText.name, schema: SmsTextSchema }]),
],
providers: [SmsTextDbService, SmsOrchestrationService],
exports: [SmsOrchestrationService],
providers: [SmsTextDbService, SmsOrchestrationService, OtpGeneratorService],
exports: [SmsOrchestrationService, OtpGeneratorService],
})
export class SmsOrchestrationModule {}