Skip to content

Commit 5d85d8f

Browse files
author
Oleg Sucharevich
authored
fix: workflow-data-item create call via sdk send extra payload (#526)
1 parent 972cb15 commit 5d85d8f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

lib/interface/cli/commands/workflow/workflow-data-item/create.cmd.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function builder(y) {
1313
required: true,
1414
alias: 'wf',
1515
})
16-
.example('codefresh create workflow-data-item --workflow [WORKFLOW_ID] --file ./file.json', 'Create new Workflow-Data-Iten that belongs to WORKFLOW_ID with content from "./file.json"')
16+
.example('codefresh create workflow-data-item --workflow [WORKFLOW_ID] --file ./file.json', 'Create new Workflow-Data-Iten that belongs to WORKFLOW_ID with content from "./file.json"');
1717
}
1818

1919
async function handler({ workflow, filename }) {
@@ -22,9 +22,8 @@ async function handler({ workflow, filename }) {
2222
payload = filename;
2323
}
2424
const res = await sdk.workflows.pushWorkflowData({
25-
payload,
2625
workflowId: workflow,
27-
});
26+
}, payload);
2827
console.log(`Workflow-Data-Item ${_.get(res, '_id')} created`);
2928
return Promise.resolve();
3029
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codefresh",
3-
"version": "0.70.0",
3+
"version": "0.70.1",
44
"description": "Codefresh command line utility",
55
"main": "index.js",
66
"preferGlobal": true,

0 commit comments

Comments
 (0)