Skip to content

Commit 660554d

Browse files
committed
fixes for trigger workflow
1 parent 369c218 commit 660554d

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

server/api/apiFactory.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const createMaestroApi = (axios, basePath, accountId, accessToken) => {
4949
};
5050

5151
const triggerWorkflow = async (args, triggerUrl) => {
52-
const response = await api.post(triggerUrl);
52+
const response = await api.post(triggerUrl, args);
5353
return response.data;
5454
};
5555

server/services/workflowsService.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,8 @@ class WorkflowsService {
3131
static triggerWorkflowInstance = async (args, payload, triggerRequirements) => {
3232
const api = initMaestroApi(args.accountId, args.basePath, args.accessToken);
3333
const triggerPayload = {
34-
participant: {},
35-
metadata: {},
36-
payload,
34+
instance_name: '',
35+
trigger_inputs: payload,
3736
};
3837
const triggerResponse = await api.triggerWorkflow(triggerPayload, triggerRequirements.trigger_http_config.url);
3938

0 commit comments

Comments
 (0)