mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-09-20 04:24:46 -04:00
[Status Page] Simplify show tags logic
This commit is contained in:
parent
37be7df9b0
commit
aef0a66205
5 changed files with 36 additions and 63 deletions
|
@ -3,12 +3,12 @@ const { R } = require("redbean-node");
|
|||
|
||||
class Group extends BeanModel {
|
||||
|
||||
async toPublicJSON() {
|
||||
async toPublicJSON(showTags = false) {
|
||||
let monitorBeanList = await this.getMonitorList();
|
||||
let monitorList = [];
|
||||
|
||||
for (let bean of monitorBeanList) {
|
||||
monitorList.push(await bean.toPublicJSON());
|
||||
monitorList.push(await bean.toPublicJSON(showTags));
|
||||
}
|
||||
|
||||
return {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue