mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-07 14:15:44 +00:00
Remove rate time
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user