wip
This commit is contained in:
1 parent
80ca8b4d78
commit
ea049cdf22
1 file changed
+7
-2
@@ -66,6 +66,8 @@ class NotifyAlarms
|
|||||||
'notify_by_mail' => 1,
|
'notify_by_mail' => 1,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
$stored_alarms[] = $send->id;
|
||||||
|
|
||||||
switch ($alarm_level_id) {
|
switch ($alarm_level_id) {
|
||||||
case 1:
|
case 1:
|
||||||
$message = 'ALARM LEVEL '.$alarm_level_id;
|
$message = 'ALARM LEVEL '.$alarm_level_id;
|
||||||
@@ -91,8 +93,9 @@ class NotifyAlarms
|
|||||||
Mail::to($user)
|
Mail::to($user)
|
||||||
->send(new AlarmNotification($message, $tablecontent, $alarm_level_id));
|
->send(new AlarmNotification($message, $tablecontent, $alarm_level_id));
|
||||||
|
|
||||||
|
} else {
|
||||||
|
$stored_alarms[] = $send;
|
||||||
}
|
}
|
||||||
$stored_alarms[] = $send;
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case 'system':
|
case 'system':
|
||||||
@@ -109,6 +112,7 @@ class NotifyAlarms
|
|||||||
'fieldname' => $fieldname,
|
'fieldname' => $fieldname,
|
||||||
'notify_by_system' => 1,
|
'notify_by_system' => 1,
|
||||||
]);
|
]);
|
||||||
|
$stored_alarms[] = $send->id;
|
||||||
|
|
||||||
switch ($alarm_level_id) {
|
switch ($alarm_level_id) {
|
||||||
case 1:
|
case 1:
|
||||||
@@ -137,8 +141,9 @@ class NotifyAlarms
|
|||||||
->sendToDatabase($user);
|
->sendToDatabase($user);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
} else {
|
||||||
|
$stored_alarms[] = $send;
|
||||||
}
|
}
|
||||||
$stored_alarms[] = $send;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user