add notice debug to alarmgenerator
This commit is contained in:
1 parent
3957b02566
commit
1279eccfcc
1 file changed
+11
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user