wip
This commit is contained in:
1 parent
65dc70e681
commit
237a58fe02
12 files changed
+59
-30
No files matched your search
@@ -9,6 +9,7 @@ use App\Models\EventBookmaker;
|
||||
use App\Models\Sport;
|
||||
use App\Utilities\Notice;
|
||||
use Illuminate\Support\Carbon;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class Fixtures
|
||||
{
|
||||
@@ -100,11 +101,13 @@ class Fixtures
|
||||
|
||||
FindFixture::find($event);
|
||||
|
||||
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']]);
|
||||
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);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user