Refresh status every minute

This commit is contained in:
Anand Chowdhary
2020-08-09 13:32:43 +05:30
parent f8eef5bee6
commit 89b5b39f4a
+9 -3
View File
@@ -114,6 +114,12 @@ const liveStatus = () => {
});
};
pastIncidents();
currentIncidents();
liveStatus();
const start = () => {
pastIncidents();
currentIncidents();
liveStatus();
};
start();
setInterval(start, 60000);