Merge pull request #2549 from Computroniks/docs/update-jsdoc-2023-01-05

Added missing JSDoc comments
This commit is contained in:
Louis Lam
2023-01-15 13:10:17 +08:00
committed by GitHub
28 changed files with 273 additions and 13 deletions

View File

@@ -21,6 +21,12 @@ class ServerChan extends NotificationProvider {
}
}
/**
* Get the formatted title for message
* @param {?Object} monitorJSON Monitor details (For Up/Down only)
* @param {?Object} heartbeatJSON Heartbeat details (For Up/Down only)
* @returns {string} Formatted title
*/
checkStatus(heartbeatJSON, monitorJSON) {
let title = "UptimeKuma Message";
if (heartbeatJSON != null && heartbeatJSON["status"] === UP) {