From ee94759532beea10ab2d2df98df3bd7692c83a81 Mon Sep 17 00:00:00 2001 From: Abdelrahman Bayoumi Date: Sat, 26 Aug 2023 00:28:09 +0300 Subject: [PATCH] Update app.module.ts --- src/app.module.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/app.module.ts b/src/app.module.ts index 707d633..15a4329 100644 --- a/src/app.module.ts +++ b/src/app.module.ts @@ -7,7 +7,7 @@ import { PrismaModule } from './prisma/prisma.module'; import { BirthdayModule } from './birthday/birthday.module'; import { APP_GUARD, APP_INTERCEPTOR } from '@nestjs/core'; import { UserSensitiveDataInterceptor } from './interceptors'; -import { ThrottlerModule, ThrottlerGuard } from '@nestjs/throttler'; +// import { ThrottlerModule, ThrottlerGuard } from '@nestjs/throttler'; import { LoggerModule } from 'nestjs-pino'; import { ServeFaviconMiddleware } from '@nest-middlewares/serve-favicon'; import { join } from 'path'; @@ -15,10 +15,10 @@ import { join } from 'path'; @Module({ imports: [ LoggerModule.forRoot(), - ThrottlerModule.forRoot({ - ttl: 60, - limit: 100, - }), + // ThrottlerModule.forRoot({ + // ttl: 60, + // limit: 100, + // }), ConfigModule.forRoot({ isGlobal: true, }), @@ -33,10 +33,10 @@ import { join } from 'path'; provide: APP_INTERCEPTOR, useClass: UserSensitiveDataInterceptor, }, - { - provide: APP_GUARD, - useClass: ThrottlerGuard, - }, + // { + // provide: APP_GUARD, + // useClass: ThrottlerGuard, + // }, ], }) export class AppModule {