We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e08a1d commit 49b0b1dCopy full SHA for 49b0b1d
src/automations/index.js
@@ -37,9 +37,9 @@ export default class Automations {
37
}
38
39
return this.app.request.post({
40
- url : `${this.app.urls.automationFlowTrigger()}/activate-by-name`,
+ url : `${this.app.urls.automationFlowTrigger()}/activate-by-name`,
41
query: { flowName, triggerName },
42
- data,
+ data : data || {},
43
})
44
45
test/unit/specs/automations/basic.js
@@ -78,6 +78,7 @@ describe('<Automations> Basic', function() {
78
expect(req1).to.deep.include({
79
method: 'POST',
80
path : `${APP_PATH}/automation/flow/trigger/activate-by-name?flowName=${FLOW_NAME}&triggerName=${TRIGGER_NAME}`,
81
+ body : {},
82
83
84
expect(req2).to.deep.include({
0 commit comments