Don't enforce maximum before time

This commit is contained in:
regalijan 2023-10-19 16:51:01 -04:00
parent 36310a727a
commit ea6a340290
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

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