Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't enforce maximum before time
  • Loading branch information
regalijan committed Oct 19, 2023
1 parent 36310a7 commit ea6a340
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions functions/api/mod-queue/list.ts
Expand Up @@ -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];
Expand Down

0 comments on commit ea6a340

Please sign in to comment.