Skip to content

Commit

Permalink
I think i have it now
Browse files Browse the repository at this point in the history
  • Loading branch information
nothingalike committed Jul 16, 2020
1 parent 0e5ed71 commit 284c92a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@ function execute() {
if (err) core.setFailed(err.Message); // an error occurred
else {
core.debug("Sending SMS");
const { MessageId } = await publishTextPromise();
core.debug("SMS sent!");
return MessageId;
return data.MessageId;
}
});
}catch(error) {
Expand Down
3 changes: 1 addition & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@ function execute() {
if (err) core.setFailed(err.Message); // an error occurred
else {
core.debug("Sending SMS");
const { MessageId } = await publishTextPromise();
core.debug("SMS sent!");
return MessageId;
return data.MessageId;
}
});
}catch(error) {
Expand Down

0 comments on commit 284c92a

Please sign in to comment.