diff --git a/app/Console/Commands/Services/Tasks/GenerateAlarms.php b/app/Console/Commands/Services/Tasks/GenerateAlarms.php index 83780330..2a23e617 100644 --- a/app/Console/Commands/Services/Tasks/GenerateAlarms.php +++ b/app/Console/Commands/Services/Tasks/GenerateAlarms.php @@ -31,9 +31,16 @@ class GenerateAlarms $clients = Client::get(); foreach ($clients as $client) { + if ($debug) { + Notice::note($client->name, 'b'); + } foreach ($client->sport as $sport_id) { + if ($debug) { + Notice::note('Sport: '.$sport_id, 'b'); + } + $multilines = AlarmMultilineSetting::get($sport_id); foreach ($client->bookmaker as $client_bookmaker_id) { @@ -43,6 +50,10 @@ class GenerateAlarms $filter = AlarmBookmakerFilter::get($client_bookmaker_id, $sport_id); $res = EventBookmaker::with('event')->where('bookmaker_id', $client_bookmaker_id)->where('sport_id', $sport_id)->get(); + + if ($debug) { + Notice::note('Event: '.\count($res), 'b'); + } // $res = EventBookmaker::where('event_id', 14597944)->where('bookmaker_id', $client_bookmaker_id)->where('sport_id', $sport_id)->get(); foreach ($res as $event) {