Fix empty input 415 unsupported media type

This commit is contained in:
Kai Jellinghaus
2022-11-24 00:29:00 +01:00
parent 3dab5f7be7
commit 725c24a32f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -115,7 +115,7 @@ async function run(
const id = await JobService.runFlowByPath({
workspace,
path,
requestBody: opts.input,
requestBody: opts.input ?? {},
});
let i = 0;
+1 -1
View File
@@ -183,7 +183,7 @@ async function run(
let id = await JobService.runScriptByPath({
workspace,
path,
requestBody: opts.input,
requestBody: opts.input ?? {},
});
track_job(workspace, id);