From bee448cd4704e1384062df6375ef3d6cd902675a Mon Sep 17 00:00:00 2001 From: alex Date: Sun, 14 Jan 2024 13:13:09 +0100 Subject: [PATCH] err --- server.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.ts b/server.ts index 3bcae49..670c3f8 100644 --- a/server.ts +++ b/server.ts @@ -84,11 +84,11 @@ app.use((req, res, next) => { console.log("req not found, path:", req.path); res.status(404).send("not found"); }); -/* + app.use((err: any, req: any, res: any, next: any) => { console.log("req err", err.stack); res.status(500).send({ err: "invalid request" }); -}); */ +}); syncModels();