Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
NorthernMan54 committed Dec 14, 2024
1 parent 465d117 commit aa0cde5
Show file tree
Hide file tree
Showing 2 changed files with 152 additions and 197 deletions.
5 changes: 2 additions & 3 deletions src/lib/alexaActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,6 @@ function alexaStepSpeaker(message, callback) {
}

function alexaMessage(message, callback) {
// debug("alexaMessage:", JSON.stringify(message));
switch (message.directive.header.name.toLowerCase()) {
case "reportstate": // aka getStatus
var action = message.directive.header.name;
Expand Down Expand Up @@ -999,7 +998,6 @@ function alexaMessage(message, callback) {
// debug("alexaMessage - statusArray", statusArray);

processStatusArray.call(this, statusArray, message).then(response => {
// debug("alexaMessage: Response", JSON.stringify(response));
callback(null, response);
}).catch(err => {
debug("alexaMessage:Error:", err.message);
Expand All @@ -1024,7 +1022,8 @@ function alexaMessage(message, callback) {
"name": "ErrorResponse",
"namespace": "Alexa",
"payloadVersion": "3",
"messageId": message.directive.header.messageId
"messageId": message.directive.header.messageId,
"correlationToken": message.directive.header.correlationToken,
},
"payload": {
"endpoints": []
Expand Down
Loading

0 comments on commit aa0cde5

Please sign in to comment.