This commit is contained in:
salam committed 2026-01-12 10:18:25 +01:00
1 parent d8eb4f2841
commit 359c3909ee
1 file changed
+2 -4
@@ -30,7 +30,7 @@ class BookmakerOffer
self::$collector[$sport_id] = [];
}
if (! in_array($bookmaker_id, self::$collector[$sport_id])) {
self::$collector[$sport_id][] = $bookmaker_id;
self::$collector[$sport_id][] = (int) $bookmaker_id;
}
}
}
@@ -39,14 +39,12 @@ class BookmakerOffer
{
if (Nuh::$options['f'] == 'bkms') {
$arr = [];
foreach (self::$collector as $sport_id => $bookmaker_ids) {
BookmakerSport::where('provider_id', Nuh::$options['provider_id'])
->where('sport_id', (int) $sport_id)
->update(['is_active' => 0]);
foreach ($bookmaker_ids as $bookmaker_id) {
$arr[] = $bookmaker_id;
BookmakerSport::updateOrCreate([
'provider_id' => Nuh::$options['provider_id'],
'bookmaker_id' => (int) $bookmaker_id,
@@ -59,7 +57,7 @@ class BookmakerOffer
$debug = Nuh::$options['d'] ?? 0;
if ($debug) {
Notice::note($arr, 'p', 1);
Notice::note(self::$collector, 'p', 1);
}
}
}