From 9da28fbbc75b16b0d90dd013057666b20be641c9 Mon Sep 17 00:00:00 2001 From: panos Date: Thu, 8 Dec 2022 13:56:02 +0200 Subject: [PATCH] zoho cliq code style --- server/notification-providers/zoho-cliq.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/server/notification-providers/zoho-cliq.js b/server/notification-providers/zoho-cliq.js index b7885be42..749647d06 100644 --- a/server/notification-providers/zoho-cliq.js +++ b/server/notification-providers/zoho-cliq.js @@ -26,8 +26,8 @@ class ZohoCliq extends NotificationProvider { * @param {string} webhookUrl URL to send the request to * @param {Array} payload Payload generated by _notificationPayloadFactory */ - _sendNotification = async(webhookUrl, payload) => { - await axios.post(webhookUrl, {text: payload.join("\n")}); + _sendNotification = async (webhookUrl, payload) => { + await axios.post(webhookUrl, { text: payload.join("\n") }); }; /** @@ -39,10 +39,10 @@ class ZohoCliq extends NotificationProvider { * @returns {Array} */ _notificationPayloadFactory = ({ - status, - monitorMessage, - monitorName, - monitorUrl, + status, + monitorMessage, + monitorName, + monitorUrl, }) => { const payload = []; payload.push("### Uptime Kuma\n"); @@ -107,7 +107,7 @@ class ZohoCliq extends NotificationProvider { await this._sendNotification(notification.webhookUrl, payload); return okMsg; - } catch(error) { + } catch (error) { this.throwGeneralAxiosError(error); } }