mirror of
				https://github.com/louislam/uptime-kuma.git
				synced 2025-10-25 07:39:22 +08:00 
			
		
		
		
	zoho cliq code style
This commit is contained in:
		| @@ -1,6 +1,6 @@ | ||||
| const NotificationProvider = require("./notification-provider"); | ||||
| const axios = require("axios"); | ||||
| const {DOWN, UP} = require("../../src/util"); | ||||
| const { DOWN, UP } = require("../../src/util"); | ||||
|  | ||||
| class ZohoCliq extends NotificationProvider { | ||||
|  | ||||
| @@ -44,7 +44,8 @@ class ZohoCliq extends NotificationProvider { | ||||
|        monitorName, | ||||
|        monitorUrl, | ||||
|     }) => { | ||||
|         const payload = ["### Uptime Kuma\n"]; | ||||
|         const payload = []; | ||||
|         payload.push("### Uptime Kuma\n"); | ||||
|         payload.push(this._statusMessageFactory(status, monitorName)); | ||||
|         payload.push(`*Description:* ${monitorMessage}`); | ||||
|  | ||||
| @@ -83,7 +84,7 @@ class ZohoCliq extends NotificationProvider { | ||||
|             } | ||||
|  | ||||
|             let url; | ||||
|             switch(monitorJSON["type"]) { | ||||
|             switch (monitorJSON["type"]) { | ||||
|                 case "http": | ||||
|                 case "keywork": | ||||
|                     url = monitorJSON["url"]; | ||||
| @@ -100,7 +101,7 @@ class ZohoCliq extends NotificationProvider { | ||||
|                 monitorMessage: heartbeatJSON.msg, | ||||
|                 monitorName: monitorJSON.name, | ||||
|                 monitorUrl: url, | ||||
|                 status: heartbeatJSON.status, | ||||
|                 status: heartbeatJSON.status | ||||
|             }); | ||||
|  | ||||
|             await this._sendNotification(notification.webhookUrl, payload); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user