From b5fa098b9d6ae2d24c59d6003cb6d1ed072a38b1 Mon Sep 17 00:00:00 2001 From: CookieDasora Date: Thu, 25 Jan 2024 20:12:58 +0000 Subject: [PATCH] fix: protected routes now respects rate limit closes issue #59 --- src/app.module.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app.module.ts b/src/app.module.ts index 8b2ac0c..b3e06f1 100644 --- a/src/app.module.ts +++ b/src/app.module.ts @@ -31,11 +31,11 @@ import { ThrottlerStorageRedisService } from "nestjs-throttler-storage-redis"; }, { provide: APP_GUARD, - useClass: JwtAuthGuard, + useClass: ThrottlerGuard, }, { provide: APP_GUARD, - useClass: ThrottlerGuard, + useClass: JwtAuthGuard, }, ], })