Skip to content

Commit

Permalink
post-merge adaptations
Browse files Browse the repository at this point in the history
  • Loading branch information
Empty2k12 committed Nov 23, 2024
1 parent e93418d commit f171e10
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions server/model/status_page.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ class StatusPage extends BeanModel {
* Get all status page data in one call
* @param {StatusPage} statusPage

Check warning on line 260 in server/model/status_page.js

View workflow job for this annotation

GitHub Actions / check-linters

Missing JSDoc @param "statusPage" description
* @param {boolean} [includeStatus = false] whether each monitor should include the status of the monitor ("up" or "down")

Check failure on line 261 in server/model/status_page.js

View workflow job for this annotation

GitHub Actions / check-linters

Optional param names are not permitted on @param
* @param {boolean} [includeConfig = true] whether the config for the status paghe should be included in the returned JSON
* @param {boolean} [includeConfig = true] whether the config for the status page should be included in the returned JSON

Check failure on line 262 in server/model/status_page.js

View workflow job for this annotation

GitHub Actions / check-linters

Optional param names are not permitted on @param
*/
static async getStatusPageData(statusPage, includeStatus = false, includeConfig = true) {
// Incident
Expand All @@ -282,7 +282,7 @@ class StatusPage extends BeanModel {
]);

for (let groupBean of list) {
let monitorGroup = await groupBean.toPublicJSON(showTags, includeStatus);
let monitorGroup = await groupBean.toPublicJSON(showTags, false, includeStatus);
publicGroupList.push(monitorGroup);
}

Expand Down
2 changes: 1 addition & 1 deletion server/routers/status-page-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ let express = require("express");
const apicache = require("../modules/apicache");
const { UptimeKumaServer } = require("../uptime-kuma-server");
const StatusPage = require("../model/status_page");
const { allowDevAllOrigin, sendHttpError } = require("../util-server");
const { allowAllOrigin, allowDevAllOrigin, sendHttpError } = require("../util-server");
const { R } = require("redbean-node");
const { badgeConstants } = require("../../src/util");
const { makeBadge } = require("badge-maker");
Expand Down

0 comments on commit f171e10

Please sign in to comment.