From a2db0037354b650c6b45e3095e317ccce098b770 Mon Sep 17 00:00:00 2001 From: Avior Date: Wed, 11 Jan 2023 21:27:20 +0100 Subject: [PATCH] fix: Build error Signed-off-by: Avior --- server/src/V2/endpoints/jsonEndpoints.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/V2/endpoints/jsonEndpoints.ts b/server/src/V2/endpoints/jsonEndpoints.ts index 433eb8c9e..bf6222eac 100644 --- a/server/src/V2/endpoints/jsonEndpoints.ts +++ b/server/src/V2/endpoints/jsonEndpoints.ts @@ -42,7 +42,7 @@ server // }) // Midleware that handle url transformation - .use((req, res, next) => { + .use((req, _, next) => { // this is ugly BUT it fix the problem with + not becoming spaces req.url = req.url.replace(/\+/g, ' ') next()