From 3cc223559a7cb71799faf5faf40990e61991b566 Mon Sep 17 00:00:00 2001 From: Valentyne Stigloher Date: Thu, 4 Jan 2024 14:44:04 +0100 Subject: [PATCH] (fix) /api route results in 500 add ignored _next parameter as express needs four parameters to supply err introduced in e5b84d736831ff37fb4238a0edc9b178d3b81f38 --- server/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/index.js b/server/index.js index e2a17f3ea..cf114c7ae 100644 --- a/server/index.js +++ b/server/index.js @@ -142,7 +142,7 @@ app.use(calendarRoute); app.use(translationsRoute); app.use(subscriptionRoute); -app.use(function (err, req, res) { +app.use(function (err, req, res, _next) { console.error(formatError(err, req)); res.status(500).send('Unexpected server error'); req.db.close();