This commit is contained in:
salam committed 2026-02-16 10:22:57 +01:00
1 parent 17905903a8
commit d26006f59a
2 files changed
+3 -3

No files matched your search

@@ -7,6 +7,7 @@ use App\Models\Event;
use App\Models\EventBookmaker; use App\Models\EventBookmaker;
use App\Models\Mapper; use App\Models\Mapper;
use Illuminate\Support\Carbon; use Illuminate\Support\Carbon;
use Illuminate\Support\Facades\DB;
class FindFixture class FindFixture
{ {
@@ -119,8 +120,6 @@ class FindFixture
if (in_array(Nuh::$options['provider_id'], [5, 6, 9])) { if (in_array(Nuh::$options['provider_id'], [5, 6, 9])) {
Mapper::updateOrCreate(['event_id' => $event_id], $event); Mapper::updateOrCreate(['event_id' => $event_id], $event);
return;
} }
/************************************************* /*************************************************
@@ -101,6 +101,7 @@ class Fixtures
FindFixture::find($event); FindFixture::find($event);
if (isset($event['id'])) {
DB::transaction(function () use ($event, $sport_id) { DB::transaction(function () use ($event, $sport_id) {
EventBookmaker::updateOrCreate([ EventBookmaker::updateOrCreate([
'event_id' => $event['id'], 'event_id' => $event['id'],
@@ -108,7 +109,7 @@ class Fixtures
'bookmaker_id' => Nuh::$options['bookmaker_id'], 'bookmaker_id' => Nuh::$options['bookmaker_id'],
], ['in_feed' => 1, 'bmoid' => $event['event_id'], 'starttime' => $event['starttime']]); ], ['in_feed' => 1, 'bmoid' => $event['event_id'], 'starttime' => $event['starttime']]);
}, 5); }, 5);
}
} }
} }
} }