Skip to content

Commit

Permalink
fix(api): format
Browse files Browse the repository at this point in the history
  • Loading branch information
Reese2k24 committed Oct 15, 2024
1 parent 7275dea commit 518b22b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/api/src/middlewares/rateLimiter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ const rateLimiter = catchAsync(
}

const baseUrl = req.baseUrl;

const rateLimit = rateLimiterUnion(selectedPlan, baseUrl);

const perPage = req?.query?.per_page || 25;
Expand Down Expand Up @@ -258,7 +257,7 @@ const rateLimiterUnion = (plan: Plan, baseUrl: string) => {
storeClient: ratelimiterRedisClient,
});

if (baseUrl && !(baseUrl === KITWALLET_PATH || baseUrl === SEARCH_PATH)) {
if (!(baseUrl === KITWALLET_PATH || baseUrl === SEARCH_PATH)) {
return new RateLimiterUnion(minuteRateLimiter, dayRateLimiter);
} else {
return new RateLimiterUnion(
Expand Down

0 comments on commit 518b22b

Please sign in to comment.