From fb255ba2126b9596ff5076ad082d8557ae8b64f4 Mon Sep 17 00:00:00 2001 From: daggieblanqx Date: Wed, 22 Jun 2022 17:35:59 +0300 Subject: [PATCH] Updated Code --- msg_parser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msg_parser.js b/msg_parser.js index bf5d0cd..a9f5e94 100644 --- a/msg_parser.js +++ b/msg_parser.js @@ -79,6 +79,7 @@ module.exports = ({ requestBody, currentWABA_ID }) => { name: null, //name is not available for notifications, it is only available for messages phone: notificationMessage.recipient_id, }; + output['notificationMessage'] = notificationMessage; } else if (message) { output['isNotificationMessage'] = false; output['isMessage'] = true; @@ -146,7 +147,6 @@ module.exports = ({ requestBody, currentWABA_ID }) => { } else { console.warn('An unidentified.'); } - output['notificationMessage'] = notificationMessage; return output; };