This commit is contained in:
salam committed 2026-08-25 13:07:09 +02:00
1 parent b8e7830ea4
commit 157c036f4f
1 file changed
+4 -2
@@ -38,7 +38,7 @@ class GenerateAlarms
foreach ($client->sport as $sport_id) { foreach ($client->sport as $sport_id) {
if ($debug) { if ($debug) {
Notice::note('Sport: '.$sport_id, 'b'); Notice::note('Sport: ' . $sport_id, 'b');
} }
$multilines = AlarmMultilineSetting::get($sport_id); $multilines = AlarmMultilineSetting::get($sport_id);
@@ -52,7 +52,7 @@ class GenerateAlarms
$res = EventBookmaker::with('event')->where('bookmaker_id', $client_bookmaker_id)->where('sport_id', $sport_id)->get(); $res = EventBookmaker::with('event')->where('bookmaker_id', $client_bookmaker_id)->where('sport_id', $sport_id)->get();
if ($debug) { if ($debug) {
Notice::note('Event: '.\count($res), 'b'); Notice::note('Event: ' . \count($res), 'b');
} }
// $res = EventBookmaker::where('event_id', 14597944)->where('bookmaker_id', $client_bookmaker_id)->where('sport_id', $sport_id)->get(); // $res = EventBookmaker::where('event_id', 14597944)->where('bookmaker_id', $client_bookmaker_id)->where('sport_id', $sport_id)->get();
@@ -72,6 +72,7 @@ class GenerateAlarms
// check if client has odds // check if client has odds
$client_odds = AlarmFilterClient::get($odds, $client_bookmaker_id); $client_odds = AlarmFilterClient::get($odds, $client_bookmaker_id);
if (isset($oddnames[$table]) && isset($alarm_threshold[$multiline_id])) {
AlarmStore::get($table, $event->event_id, $oddnames[$table], $client_bookmaker_id, $alarm_threshold[$multiline_id], $compare_odds, $client_odds); AlarmStore::get($table, $event->event_id, $oddnames[$table], $client_bookmaker_id, $alarm_threshold[$multiline_id], $compare_odds, $client_odds);
} }
} }
@@ -80,4 +81,5 @@ class GenerateAlarms
} }
} }
} }
}
} }