From 32b126799fd6958aa578f3502f2cf0333ee2b0a0 Mon Sep 17 00:00:00 2001 From: SayMoon Date: Tue, 29 Apr 2025 05:53:32 +0200 Subject: [PATCH 1/3] Add missing await --- http-caller-get/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/http-caller-get/index.ts b/http-caller-get/index.ts index 5094d68..b1da608 100644 --- a/http-caller-get/index.ts +++ b/http-caller-get/index.ts @@ -16,5 +16,6 @@ export function getDescription() { export async function execute(context): Promise { const requestEndpoint = context.parameters.get; const response = await fetch(requestEndpoint); - console.debug(response.json()); + const responseJson = await response.json(); + console.debug(responseJson); } From bb030483debc5b7d589b45e78f31d4defb5e8294 Mon Sep 17 00:00:00 2001 From: SayMoon Date: Tue, 29 Apr 2025 06:00:39 +0200 Subject: [PATCH 2/3] Please prettier --- http-caller-post/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http-caller-post/index.ts b/http-caller-post/index.ts index 528c0e2..112298f 100644 --- a/http-caller-post/index.ts +++ b/http-caller-post/index.ts @@ -12,7 +12,7 @@ export function getDescription() { id: "body", displayName: "Body", description: "Body to send to the endpoint", - type: "String", + type: "String", } ], output: [], From d0e773db279398538c85fc5cef0e0792bb7dac39 Mon Sep 17 00:00:00 2001 From: SayMoon Date: Tue, 29 Apr 2025 06:01:56 +0200 Subject: [PATCH 3/3] Please prettier --- http-caller-post/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http-caller-post/index.ts b/http-caller-post/index.ts index 112298f..d0505f5 100644 --- a/http-caller-post/index.ts +++ b/http-caller-post/index.ts @@ -13,7 +13,7 @@ export function getDescription() { displayName: "Body", description: "Body to send to the endpoint", type: "String", - } + }, ], output: [], } as const satisfies ScriptDescription;