Fix: Active needs to return bool instead of 0

This commit is contained in:
Nelson Chan 2023-06-26 13:21:51 +08:00
parent 596402e71f
commit 7cc9783436

View File

@ -155,7 +155,7 @@ class Monitor extends BeanModel {
async isActive() {
const parentActive = await Monitor.isParentActive(this.id);
return this.active && parentActive;
return (this.active === 1) && parentActive;
}
/**