From 84e32faac9757c8a6e328cfad5bd861778f93266 Mon Sep 17 00:00:00 2001 From: Tuan Dang Date: Thu, 23 Nov 2023 17:59:05 +0700 Subject: [PATCH] Import express-async-errors --- backend/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/index.ts b/backend/src/index.ts index d1379c04f..ad25f7821 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -2,7 +2,7 @@ import dotenv from "dotenv"; dotenv.config(); import express from "express"; // eslint-disable-next-line @typescript-eslint/no-var-requires -require("express-async-errors"); +import "express-async-errors"; import helmet from "helmet"; import cors from "cors"; import { initLogger, logger } from "./utils/logging";