23 lines
608 B
TypeScript
Executable File
23 lines
608 B
TypeScript
Executable File
import { Module } from "@nestjs/common";
|
|
|
|
import { S3_CONFIG } from "./constants";
|
|
import { CacheService } from "./services/cache.service";
|
|
import { OTPService } from "./services/otp.service";
|
|
import { PasswordService } from "./services/password.service";
|
|
import { S3Configs } from "../../configs/s3.config";
|
|
|
|
@Module({
|
|
providers: [
|
|
OTPService,
|
|
PasswordService,
|
|
CacheService,
|
|
{
|
|
provide: S3_CONFIG,
|
|
useFactory: S3Configs().useFactory,
|
|
inject: S3Configs().inject,
|
|
},
|
|
],
|
|
exports: [S3_CONFIG, OTPService, PasswordService, CacheService],
|
|
})
|
|
export class UtilsModule {}
|