From 6e8292508e407f4bbc815caef30651af5c9bc570 Mon Sep 17 00:00:00 2001 From: Rory& Date: Sat, 14 Mar 2026 04:03:56 +0100 Subject: [PATCH] minor cleanup --- src/api/middlewares/ErrorHandler.ts | 2 +- src/api/routes/guilds/#guild_id/messages/search.ts | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/api/middlewares/ErrorHandler.ts b/src/api/middlewares/ErrorHandler.ts index 87e44c630..02d38def1 100644 --- a/src/api/middlewares/ErrorHandler.ts +++ b/src/api/middlewares/ErrorHandler.ts @@ -50,7 +50,7 @@ export function ErrorHandler(error: Error & { type?: string }, req: Request, res code = 50109; message = "The request body contains invalid JSON."; } else { - console.error(`[Error] ${code} ${req.url}\n`, errors || error, "\nbody:", req.body); + console.error(`[Error] ${code} ${req.url}\n`, errors, "\nbody:", req.body); if (req.server?.options?.production) { // don't expose internal errors to the user, instead human errors should be thrown as HTTPError diff --git a/src/api/routes/guilds/#guild_id/messages/search.ts b/src/api/routes/guilds/#guild_id/messages/search.ts index 601d39d6b..462ca834e 100644 --- a/src/api/routes/guilds/#guild_id/messages/search.ts +++ b/src/api/routes/guilds/#guild_id/messages/search.ts @@ -16,8 +16,6 @@ along with this program. If not, see . */ -/* eslint-disable @typescript-eslint/ban-ts-comment */ - import { route } from "@spacebar/api"; import { Channel, FieldErrors, Member, Message, Snowflake, getPermission } from "@spacebar/util"; import { Request, Response, Router } from "express";