From 60992b4def1c2e2978ad3e9751a123f4b629342e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20M=C3=A9rigot?= Date: Wed, 16 Oct 2024 15:17:23 +0200 Subject: [PATCH] hotfix --- api/src/pdc/proxy/HttpTransport.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/pdc/proxy/HttpTransport.ts b/api/src/pdc/proxy/HttpTransport.ts index 09b9f7ddc3..316e5d27a9 100644 --- a/api/src/pdc/proxy/HttpTransport.ts +++ b/api/src/pdc/proxy/HttpTransport.ts @@ -1137,7 +1137,7 @@ export class HttpTransport implements TransportInterface { response.error?.data || { message: response.error?.message }, ); } else { - if (successStatus === 204 || !response || !("result" in response)) { + if (successStatus === 204 || !response?.result) { res.status(204).end(); } else { res.status(successStatus).json(response?.result);