Remove rate time

This commit is contained in:
Roba Boru
2026-07-14 10:46:27 +03:00
parent e7aed5a6e4
commit 7cb6d028cf
11 changed files with 1 additions and 79 deletions

View File

@@ -1,7 +1,5 @@
import { Logger, Module, OnApplicationBootstrap } from "@nestjs/common";
import { ThrottlerModule } from "@nestjs/throttler";
import { DynamicThrottlerGuard } from "./common/dynamic-throttler.guard";
import { APP_GUARD, APP_FILTER } from "@nestjs/core";
import { APP_FILTER } from "@nestjs/core";
import { ConfigModule, ConfigService } from "@nestjs/config";
import { ScheduleModule } from "@nestjs/schedule";
import { EventEmitterModule } from "@nestjs/event-emitter";
@@ -69,11 +67,6 @@ import { EOtpType } from "@tria-plc/iamapi-common";
@Module({
imports: [
// ThrottlerModule.forRoot([
// { name: "auth", ttl: 60, limit: 100000 },
// { name: "strict", ttl: 60, limit: 100000 },
// { name: "default", ttl: 60, limit: 100000 },
// ]),
ConfigModule.forRoot({
isGlobal: true,
load: [
@@ -149,9 +142,7 @@ import { EOtpType } from "@tria-plc/iamapi-common";
ConfigurableFareModule,
],
providers: [
{ provide: APP_GUARD, useClass: DynamicThrottlerGuard },
{ provide: APP_FILTER, useClass: DeleteExceptionFilter },
DynamicThrottlerGuard,
EdrPassengerOrgSeeder,
PassengerStaffUsersSeeder,
SegmentFareSeeder,