From ea6a34029010cdc2cb3bf695bc6c5b2fc6413b66 Mon Sep 17 00:00:00 2001 From: regalijan Date: Thu, 19 Oct 2023 16:51:01 -0400 Subject: [PATCH] Don't enforce maximum before time --- functions/api/mod-queue/list.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/functions/api/mod-queue/list.ts b/functions/api/mod-queue/list.ts index 169e375..d8c6160 100644 --- a/functions/api/mod-queue/list.ts +++ b/functions/api/mod-queue/list.ts @@ -31,8 +31,7 @@ export async function onRequestGet(context: RequestContext) { if (!permissions[entryType].find((p) => currentUser.permissions & p)) return jsonError("You cannot use this filter", 403); - if (isNaN(before) || before > Date.now()) - return jsonError("Invalid `before` parameter", 400); + if (isNaN(before)) return jsonError("Invalid `before` parameter", 400); const prefix = types[entryType]; const table = tables[entryType];