patch sendCopyOfAllMonitorConfigs function to ignore failure

merge-requests/521/merge^2
Moe 2024-10-05 12:04:59 -07:00
parent fb0cfe966a
commit 747cc9875c
1 changed files with 7 additions and 3 deletions

View File

@ -370,9 +370,13 @@ module.exports = function(s,config,lang,app,io){
function sendCopyOfAllMonitorConfigs(){
const groupKeys = Object.keys(s.group);
for(groupKey of groupKeys){
const monitorConfigs = Object.values(s.group[groupKey].rawMonitorConfigurations);
for(monitorConfig of monitorConfigs){
onMonitorUpdate(monitorConfig)
try{
const monitorConfigs = Object.values(s.group[groupKey].rawMonitorConfigurations);
for(monitorConfig of monitorConfigs){
onMonitorUpdate(monitorConfig)
}
}catch(err){
s.debugLog(err)
}
}
}