update services/repositories to reflect new monitorstatus type
This commit is contained in:
1 parent
d622bce6c1
commit
94afe19b37
7 files changed
+24
-30
No files matched your search
@@ -46,7 +46,7 @@ class IncidentService {
|
||||
handleIncident = async (monitor: Monitor, code: number): Promise<Incident | null> => {
|
||||
const activeIncident = await this.incidentsRepository.findActiveByMonitorId(monitor.id, monitor.teamId);
|
||||
// Monitor is down, create an incident
|
||||
if (monitor.status === false) {
|
||||
if (monitor.status === "down") {
|
||||
if (activeIncident) {
|
||||
return activeIncident;
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user