feat: resolve lint/build/test errors
Some checks failed
Node.js CI / Lint and Test (pull_request) Failing after 1m27s

This commit is contained in:
2025-02-17 11:48:46 -08:00
parent fc213289c2
commit f2c6d6d3ef
58 changed files with 767 additions and 392 deletions

View File

@ -47,6 +47,7 @@ export const reviewHandler = async(
await markSubmissionReviewed(database, route, submissionId);
await response.code(200).send({ success: true });
} catch (error) {
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions -- we bein' lazy.
await logger.error(`/review/${route}`, error as Error);
await response.status(500).send({ error: error instanceof Error
? error.message