Skip to content

Commit

Permalink
Skip Throttle in SendOTP API
Browse files Browse the repository at this point in the history
  • Loading branch information
singhalkarun authored Jan 23, 2024
1 parent 19bfd91 commit 828254b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/api.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand All @@ -54,7 +54,7 @@ export class ApiController {
};
}

@Throttle(100, 60)
@SkipThrottle()
@Get('sendOTP')
@UsePipes(new ValidationPipe({ transform: true }))
async sendOTP(
Expand Down

0 comments on commit 828254b

Please sign in to comment.