Skip to content

Commit 828254b

Browse files
authored
Skip Throttle in SendOTP API
1 parent 19bfd91 commit 828254b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/api/api.controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import * as Sentry from '@sentry/node';
3030
import { LoginDto } from './dto/login.dto';
3131
import { SendOtpDto } from './dto/send-otp.dto';
3232
import { VerifyOtpDto } from './dto/verify-otp.dto';
33-
import { Throttle } from '@nestjs/throttler';
33+
import { Throttle, SkipThrottle} from '@nestjs/throttler';
3434
// eslint-disable-next-line @typescript-eslint/no-var-requires
3535
const CryptoJS = require('crypto-js');
3636

@@ -54,7 +54,7 @@ export class ApiController {
5454
};
5555
}
5656

57-
@Throttle(100, 60)
57+
@SkipThrottle()
5858
@Get('sendOTP')
5959
@UsePipes(new ValidationPipe({ transform: true }))
6060
async sendOTP(

0 commit comments

Comments
 (0)