From 725c24a32fee2ae36e4cb143d5b27992214a72fe Mon Sep 17 00:00:00 2001 From: Kai Jellinghaus Date: Thu, 24 Nov 2022 00:29:00 +0100 Subject: [PATCH] Fix empty input 415 unsupported media type --- cli/flow.ts | 2 +- cli/script.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/flow.ts b/cli/flow.ts index d98f23b940..b3a79d8c71 100644 --- a/cli/flow.ts +++ b/cli/flow.ts @@ -115,7 +115,7 @@ async function run( const id = await JobService.runFlowByPath({ workspace, path, - requestBody: opts.input, + requestBody: opts.input ?? {}, }); let i = 0; diff --git a/cli/script.ts b/cli/script.ts index 5fa849b60b..f19846ebba 100644 --- a/cli/script.ts +++ b/cli/script.ts @@ -183,7 +183,7 @@ async function run( let id = await JobService.runScriptByPath({ workspace, path, - requestBody: opts.input, + requestBody: opts.input ?? {}, }); track_job(workspace, id);