From 284c92a6a70480119152c1d4dd598da972884bd7 Mon Sep 17 00:00:00 2001 From: Kyle Johns Date: Thu, 16 Jul 2020 15:30:55 -0400 Subject: [PATCH] I think i have it now --- dist/index.js | 3 +-- src/index.js | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index ae4c164..bbffa8e 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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) { diff --git a/src/index.js b/src/index.js index 4f5535a..9b42c11 100644 --- a/src/index.js +++ b/src/index.js @@ -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) {