mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2026-10-25 20:47:56 +00:00
15 lines
490 B
TypeScript
15 lines
490 B
TypeScript
import { Global, Module } from '@nestjs/common';
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
import { NotificationModule } from '../notification/notification.module';
|
|
import { Otp } from './entities';
|
|
import { OtpRepository } from './repositories';
|
|
import { OtpService } from './services/otp.service';
|
|
|
|
@Global()
|
|
@Module({
|
|
providers: [OtpService, OtpRepository],
|
|
exports: [OtpService],
|
|
imports: [TypeOrmModule.forFeature([Otp]), NotificationModule],
|
|
})
|
|
export class OtpModule {}
|