From 8a2b122d7fb95194dff2b256ea7d92d1bf297875 Mon Sep 17 00:00:00 2001 From: Methapon Metanipat Date: Thu, 29 Aug 2024 13:09:44 +0700 Subject: [PATCH] fix: code case --- src/middlewares/error.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/middlewares/error.ts b/src/middlewares/error.ts index 177e363..2ac26e2 100644 --- a/src/middlewares/error.ts +++ b/src/middlewares/error.ts @@ -26,7 +26,7 @@ function error(error: Error, _req: Request, res: Response, _next: NextFunction) return res.status(HttpStatus.INTERNAL_SERVER_ERROR).json({ status: HttpStatus.INTERNAL_SERVER_ERROR, message: error.message, - code: "system_error", + code: "systemError", }); }