Skip to content

Commit

Permalink
notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
forelleblau committed Nov 6, 2023
1 parent 3928d62 commit 8d33218
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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 => {
Expand Down

0 comments on commit 8d33218

Please sign in to comment.