|
|
@ -65,7 +65,7 @@ class NotificationHelper |
|
|
|
public function sendNotifications($users, $level = null) { |
|
|
|
switch ($level) { |
|
|
|
case "emergency": |
|
|
|
Notification::send($users, new SmsNotification($this->sms_notif, 'ultraFastSend')); |
|
|
|
Notification::send($users, new SmsNotification($this->sms_notif, enum('sms.types.ultra_fast_send.name'))); |
|
|
|
case "critical": |
|
|
|
Notification::send($users, new MailNotification($this->notif)); |
|
|
|
case "high": |
|
|
@ -73,10 +73,10 @@ class NotificationHelper |
|
|
|
case "medium": |
|
|
|
Notification::send($users, new FcmNotification($this->notif)); |
|
|
|
case "low": |
|
|
|
Notification::send($users, new SocketNotification($this->notif)); |
|
|
|
// Notification::send($users, new SocketNotification($this->notif));
|
|
|
|
break; |
|
|
|
default: |
|
|
|
Notification::send($users, new SocketNotification($this->notif)); |
|
|
|
// Notification::send($users, new SocketNotification($this->notif));
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|