Don't enforce maximum before time
This commit is contained in:
parent
36310a727a
commit
ea6a340290
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user