From 8d3321830ad3c03b04388f65df76db95dedd7583 Mon Sep 17 00:00:00 2001 From: forelleblau <44144152+forelleblau@users.noreply.github.com> Date: Mon, 6 Nov 2023 19:45:32 +0100 Subject: [PATCH] notifications --- main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.js b/main.js index f490e54..b635a41 100644 --- a/main.js +++ b/main.js @@ -93,7 +93,7 @@ class Gsmsms extends utils.Adapter { async onMessage(obj) { try { if (obj.command === 'sendNotification') { - processNotification(adapter, obj); + await this.processNotification(obj); } else { this.log.debug('Recieved Message, data: ' + JSON.stringify(obj)); const messageToSend = { @@ -700,8 +700,8 @@ class Gsmsms extends utils.Adapter { - async processNotification(adapter, obj) { - adapter.log.info(`New notification received from ${obj}`); + async processNotification(obj) { + this.log.info(`New notification received from: ${JSON.stringify(obj)}`); /*const mail = buildMessageFromNotification(obj.message) sendEmail(adapter, null, null, mail, error => {