From 828254b7b840a381942898da06e94343cb72ac8d Mon Sep 17 00:00:00 2001 From: Karun Agarwal <113603846+singhalkarun@users.noreply.github.com> Date: Tue, 23 Jan 2024 21:08:59 +0530 Subject: [PATCH] Skip Throttle in SendOTP API --- src/api/api.controller.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/api.controller.ts b/src/api/api.controller.ts index bb915a3..4773816 100644 --- a/src/api/api.controller.ts +++ b/src/api/api.controller.ts @@ -30,7 +30,7 @@ import * as Sentry from '@sentry/node'; import { LoginDto } from './dto/login.dto'; import { SendOtpDto } from './dto/send-otp.dto'; import { VerifyOtpDto } from './dto/verify-otp.dto'; -import { Throttle } from '@nestjs/throttler'; +import { Throttle, SkipThrottle} from '@nestjs/throttler'; // eslint-disable-next-line @typescript-eslint/no-var-requires const CryptoJS = require('crypto-js'); @@ -54,7 +54,7 @@ export class ApiController { }; } - @Throttle(100, 60) + @SkipThrottle() @Get('sendOTP') @UsePipes(new ValidationPipe({ transform: true })) async sendOTP(