From ae61caf386980c2d88fb5234ced338ca58ff986e Mon Sep 17 00:00:00 2001 From: Philip Carneiro Date: Thu, 31 Aug 2023 11:14:51 +0100 Subject: [PATCH] add fix to arraybuffer --- src/commands/serverCommand.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/commands/serverCommand.ts b/src/commands/serverCommand.ts index a04d15e4..af138241 100644 --- a/src/commands/serverCommand.ts +++ b/src/commands/serverCommand.ts @@ -460,7 +460,9 @@ export async function getDataInsights( } return { error: "", - arrayBuffer: response.data.buffer, + arrayBuffer: response.data.buffer + ? response.data.buffer + : response.data, }; }) .catch((error: any) => {