Merge branch 'ent-12560-notificacion-del-alert-correlation-changed-in-v774-sigue-apareciendo' into 'develop'

Ent 12560 notificacion del alert correlation changed in v774 sigue apareciendo

See merge request artica/pandorafms!6770
This commit is contained in:
Matias Didier 2024-01-18 08:45:26 +00:00
commit bfa087413c
1 changed files with 3 additions and 1 deletions

View File

@ -928,7 +928,9 @@ class ConsoleSupervisor
false
);
if ($prev !== false
if ($data['type'] === 'NOTIF.LOG.ALERT' && $prev !== false) {
return;
} else if ($prev !== false
&& (time() - $prev['timestamp']) > $max_age
) {
// Clean previous notification.