diff --git a/app/Console/Commands/Services/Tasks/NotifyAlarms.php b/app/Console/Commands/Services/Tasks/NotifyAlarms.php index a0c27385..50e5cb96 100644 --- a/app/Console/Commands/Services/Tasks/NotifyAlarms.php +++ b/app/Console/Commands/Services/Tasks/NotifyAlarms.php @@ -58,10 +58,10 @@ class NotifyAlarms if (! $send) { $send = PersonalNotificationSend::create([ - 'event_id' => $event_id, - 'user_id' => $user_id, - 'bookmaker_id' => $bookmaker_id, - 'alarm_level_id' => $alarm_level_id, + 'event_id' => (int) $event_id, + 'user_id' => (int) $user_id, + 'bookmaker_id' => (int) $bookmaker_id, + 'alarm_level_id' => (int) $alarm_level_id, 'fieldname' => $fieldname, 'notify_by_mail' => 1, ]); @@ -102,10 +102,10 @@ class NotifyAlarms if (! $send) { $send = PersonalNotificationSend::create([ - 'event_id' => $event_id, - 'user_id' => $user_id, - 'bookmaker_id' => $bookmaker_id, - 'alarm_level_id' => $alarm_level_id, + 'event_id' => (int) $event_id, + 'user_id' => (int) $user_id, + 'bookmaker_id' => (int) $bookmaker_id, + 'alarm_level_id' => (int) $alarm_level_id, 'fieldname' => $fieldname, 'notify_by_system' => 1, ]);