From 29def1408a906af7c09c35dc6df89b3c2cb56d44 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Mon, 3 Apr 2023 15:36:34 +0100 Subject: [PATCH] Fixing syntax error and linting. --- packages/server/src/integrations/rest.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/server/src/integrations/rest.ts b/packages/server/src/integrations/rest.ts index eca340c959..3262aba980 100644 --- a/packages/server/src/integrations/rest.ts +++ b/packages/server/src/integrations/rest.ts @@ -152,9 +152,9 @@ class RestIntegration implements IntegrationBase { } raw = rawXml } else if (contentType.includes("application/pdf")) { - data = await response.arrayBuffer(); // Save PDF as ArrayBuffer - raw = Buffer.from(data); - else { + data = await response.arrayBuffer() // Save PDF as ArrayBuffer + raw = Buffer.from(data) + } else { data = await response.text() raw = data }