Skip to content

Commit aedac23

Browse files
authored
fix: isParentActive return type to boolean (louislam#7121)
1 parent 1b76499 commit aedac23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/model/monitor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2059,7 +2059,7 @@ class Monitor extends BeanModel {
20592059
}
20602060

20612061
const parentActive = await Monitor.isParentActive(parent.id);
2062-
return parent.active && parentActive;
2062+
return parent.active === 1 && parentActive;
20632063
}
20642064

20652065
/**

0 commit comments

Comments
 (0)