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];