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

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,14 +101,15 @@ class Fixtures
FindFixture::find($event); FindFixture::find($event);
DB::transaction(function () use ($event, $sport_id) { if (isset($event['id'])) {
EventBookmaker::updateOrCreate([ DB::transaction(function () use ($event, $sport_id) {
'event_id' => $event['id'], EventBookmaker::updateOrCreate([
'sport_id' => $sport_id, 'event_id' => $event['id'],
'bookmaker_id' => Nuh::$options['bookmaker_id'], 'sport_id' => $sport_id,
], ['in_feed' => 1, 'bmoid' => $event['event_id'], 'starttime' => $event['starttime']]); 'bookmaker_id' => Nuh::$options['bookmaker_id'],
}, 5); ], ['in_feed' => 1, 'bmoid' => $event['event_id'], 'starttime' => $event['starttime']]);
}, 5);
}
} }
} }
} }