fix: empty flows not return their inputs

This commit is contained in:
Ruben Fiszel
2023-06-06 11:09:17 +02:00
parent 2943d26f0f
commit 253fd91024
+1 -1
View File
@@ -931,7 +931,7 @@ async fn push_next_flow_job<R: rsmq_async::RsmqConnection + Send + Sync + Clone>
flow_job.workspace_id.as_str(),
true,
if flow.modules.is_empty() {
json!({})
flow_job.args.clone().unwrap_or_default()
} else {
json!([])
},