Skip to content
This repository has been archived by the owner on Mar 3, 2024. It is now read-only.

Commit

Permalink
Prevent cancellation of step function during callback
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewturner committed Dec 13, 2019
1 parent a55f281 commit 8805a35
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion aws/handlers/Handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Handler {
const userId = profile.user_id;
const shortUserId = helpers.truncateUserId(userId);
this._logger.prefix = shortUserId;
let source = 'user';
const source = event.directive.payload.source || 'user';
const context = {
userId: userId,
shortUserId: shortUserId,
Expand Down
16 changes: 9 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"moment": "^2.24.0",
"request": "^2.88.0",
"request-promise": "^4.2.4",
"smartheat-aws": "github:matthewturner/smartheat-aws#v1.0.1",
"smartheat-aws": "github:matthewturner/smartheat-aws#v1.1.0",
"smartheat-clients": "github:matthewturner/smartheat-clients#v1.3.0",
"smartheat-core": "github:matthewturner/smartheat-core#v1.1.0"
}
Expand Down
1 change: 1 addition & 0 deletions test/fixtures/SetThermostatModeOffDirective-deferred.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"userId": "user123"
},
"payload": {
"source": "callback",
"thermostatMode": {
"value": "OFF"
}
Expand Down

0 comments on commit 8805a35

Please sign in to comment.