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