Skip to content

Commit

Permalink
fix: fix statebox.startExecution when invoked in callback style
Browse files Browse the repository at this point in the history
affects: tymly
  • Loading branch information
jezhiggins committed Jun 11, 2018
1 parent ce79b7e commit 41b9d1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plugin/components/services/statebox/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class StateboxService {

async startExecution (input, stateMachineName, executionOptions, callback) {
if (callback) {
this.startExecution(input, stateMachineName, executionOptions)
return this.startExecution(input, stateMachineName, executionOptions)
.then(executionDescription => callback(null, executionDescription))
.catch(err => callback(err))
} // if ...
Expand Down

0 comments on commit 41b9d1b

Please sign in to comment.