From 9c66c46d51b1487b952e750b41986e2670d2d333 Mon Sep 17 00:00:00 2001 From: Simon Nilsson Date: Mon, 25 Mar 2024 21:42:24 +0100 Subject: [PATCH] Fixed errors --- server/notification-providers/cellsynt.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/server/notification-providers/cellsynt.js b/server/notification-providers/cellsynt.js index 27ad2b47..95b22876 100644 --- a/server/notification-providers/cellsynt.js +++ b/server/notification-providers/cellsynt.js @@ -69,7 +69,7 @@ class Cellsynt extends NotificationProvider { needed (default value is 1, see Long SMS). Maximum value is 6 (i.e. max 153 x 6 = 918 characters). */ - "allowconcat": notification.cellsyntAllowLongSMS ? 6: 1, + "allowconcat": notification.cellsyntAllowLongSMS ? 6 : 1, /* Value can be set to true if message should be sent as "flash message", i.e. displayed directly on phone screen instead of @@ -105,8 +105,7 @@ class Cellsynt extends NotificationProvider { if (heartbeatJSON != null) { data.params.text = msg.replace(/[^\x00-\x7F]/g, ""); } - - let resp = await axios.post("https://se-1.cellsynt.net/sms.php",null,data); + let resp = await axios.post("https://se-1.cellsynt.net/sms.php", null, data); if(resp.data == null || resp.data.includes("Error")) { this.throwGeneralAxiosError(resp.data); }