fix lint errors

This commit is contained in:
Gero Gerke 2024-11-23 16:28:01 +01:00
parent f171e101fd
commit a8c30f5ab8
No known key found for this signature in database
3 changed files with 11 additions and 8 deletions

View file

@ -6,9 +6,11 @@ class Group extends BeanModel {
/**
* Return an object that ready to parse to JSON for public
* Only show necessary data to public
* @param {boolean} [showTags=false] Should the JSON include monitor tags
* @param {boolean} [showStatus = false] Should the JSON include the status
* @returns {Object}
* @param {boolean} showTags Should the JSON include monitor tags
* @param {boolean} certExpiry Should JSON include info about
* certificate expiry?
* @param {boolean} showStatus Should the JSON include the status
* @returns {Promise<object>} Object ready to parse
*/
async toPublicJSON(showTags = false, certExpiry = false, showStatus = false) {
let monitorBeanList = await this.getMonitorList();

View file

@ -37,8 +37,8 @@ const rootCertificates = rootCertificatesFingerprints();
class Monitor extends BeanModel {
/**
<<<<<<< HEAD
* Formats the status code to a human readable form
* @param {number} status the internal status code of the monitor
* @returns {string} a human readable string that corresponds to the status code
*/
statusToKey(status) {
@ -57,7 +57,7 @@ class Monitor extends BeanModel {
* @param {boolean} showTags Include tags in JSON
* @param {boolean} certExpiry Include certificate expiry info in
* JSON
* @param {boolean} [showStatus = false] Should the JSON show the status
* @param {boolean} showStatus Should the JSON show the status
* @returns {Promise<object>} Object ready to parse
*/
async toPublicJSON(showTags = false, certExpiry = false, showStatus = false) {

View file

@ -257,9 +257,10 @@ class StatusPage extends BeanModel {
/**
* Get all status page data in one call
* @param {StatusPage} statusPage
* @param {boolean} [includeStatus = false] whether each monitor should include the status of the monitor ("up" or "down")
* @param {boolean} [includeConfig = true] whether the config for the status page should be included in the returned JSON
* @param {StatusPage} statusPage the status page to return the data for
* @param {boolean} includeStatus whether each monitor should include the status of the monitor ("up" or "down")
* @param {boolean} includeConfig whether the config for the status page should be included in the returned JSON
* @returns {object} the status page data object
*/
static async getStatusPageData(statusPage, includeStatus = false, includeConfig = true) {
// Incident