mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-01-31 00:36:16 +00:00
Fix: Active needs to return bool instead of 0
This commit is contained in:
parent
596402e71f
commit
7cc9783436
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ class Monitor extends BeanModel {
|
||||||
async isActive() {
|
async isActive() {
|
||||||
const parentActive = await Monitor.isParentActive(this.id);
|
const parentActive = await Monitor.isParentActive(this.id);
|
||||||
|
|
||||||
return this.active && parentActive;
|
return (this.active === 1) && parentActive;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue