Skip to content

Commit

Permalink
Update app.module.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdelrahmanBayoumi committed Aug 25, 2023
1 parent b677414 commit ee94759
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ 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';

@Module({
imports: [
LoggerModule.forRoot(),
ThrottlerModule.forRoot({
ttl: 60,
limit: 100,
}),
// ThrottlerModule.forRoot({
// ttl: 60,
// limit: 100,
// }),
ConfigModule.forRoot({
isGlobal: true,
}),
Expand All @@ -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 {
Expand Down

0 comments on commit ee94759

Please sign in to comment.