fix: maintenance heredity

pull/2693/head
Peace 2 years ago
parent 2b46da0f47
commit 56f448bfe5
No known key found for this signature in database
GPG Key ID: 0EF6B46E172B739F

@ -1371,12 +1371,12 @@ class Monitor extends BeanModel {
if (maintenance && await maintenance.isUnderMaintenance()) { if (maintenance && await maintenance.isUnderMaintenance()) {
return true; return true;
} }
}
const parent = await Monitor.getParent(monitorID); const parent = await Monitor.getParent(monitorID);
if (parent != null) { if (parent != null) {
return await Monitor.isUnderMaintenance(parent.id); return await Monitor.isUnderMaintenance(parent.id);
} }
}
return false; return false;
} }

Loading…
Cancel
Save