Skip to content

Commit

Permalink
Updated Code
Browse files Browse the repository at this point in the history
  • Loading branch information
DaggieBlanqx committed Jun 22, 2022
1 parent e5cf0a6 commit fb255ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion msg_parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -146,7 +147,6 @@ module.exports = ({ requestBody, currentWABA_ID }) => {
} else {
console.warn('An unidentified.');
}
output['notificationMessage'] = notificationMessage;

return output;
};

0 comments on commit fb255ba

Please sign in to comment.