From 507a7a3e9daeaf37a3946246cf3e88e060f42d2f Mon Sep 17 00:00:00 2001 From: Eirik Vigeland Date: Wed, 7 Aug 2024 09:54:56 +0200 Subject: [PATCH] test. fjernet userResDecorator --- server/src/proxy/decorator-intern-proxy.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/server/src/proxy/decorator-intern-proxy.ts b/server/src/proxy/decorator-intern-proxy.ts index baa7f709d..ba4a7a2b2 100644 --- a/server/src/proxy/decorator-intern-proxy.ts +++ b/server/src/proxy/decorator-intern-proxy.ts @@ -51,10 +51,6 @@ const setup = (app: Express) => { } return options; }, - userResDecorator: (proxyRes: IncomingMessage, proxyResData: any, userReq: Request, userRes: Response) => { - const data = JSON.parse(proxyResData.toString('utf8')); - return JSON.stringify({ ...data, ident: data.identifikator || '' }); - }, }), );