From 45d5edb844ca48bcac6422914eebc322b97809e4 Mon Sep 17 00:00:00 2001 From: Hanif Dwy Putra S <47862061+hansputera@users.noreply.github.com> Date: Fri, 29 Jul 2022 13:31:57 +0000 Subject: [PATCH] feat: remove "nocache" on download validation, and increase ratelimit time Signed-off-by: Hanif Dwy Putra S <47862061+hansputera@users.noreply.github.com> --- apps/web/config.ts | 2 +- apps/web/pages/api/download.ts | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/apps/web/config.ts b/apps/web/config.ts index d22b570..0db46b9 100644 --- a/apps/web/config.ts +++ b/apps/web/config.ts @@ -10,7 +10,7 @@ export const rateLimitConfig = { * So, their ratelimit data will removed. * PS: Data stored on redis. */ - ratelimitTime: 60, + ratelimitTime: 120, }; /** diff --git a/apps/web/pages/api/download.ts b/apps/web/pages/api/download.ts index 00eb09f..64a42b4 100644 --- a/apps/web/pages/api/download.ts +++ b/apps/web/pages/api/download.ts @@ -28,10 +28,6 @@ export default applyRoute( 'Invalid Provider, available provider is: ' + Providers.map((x) => x.resourceName()).join(', '), })), - nocache: - req.method === 'POST' - ? ow.optional.boolean - : ow.optional.string, rotateOnError: req.method === 'POST' ? ow.optional.boolean