wip
This commit is contained in:
1 parent
965c7fca90
commit
d077b6a429
26 files changed
+134
-123
No files matched your search
@@ -227,6 +227,7 @@ class Odds
|
||||
$sport_id = (int) $row->group['spid'];
|
||||
|
||||
$event = [
|
||||
'has_markets' => 1,
|
||||
'provider_id' => (int) Nuh::$options['provider_id'],
|
||||
'starttime' => $row->time,
|
||||
'sport_id' => $sport_id,
|
||||
@@ -237,7 +238,7 @@ class Odds
|
||||
'competition_group_id' => (int) $row->group['cgid'],
|
||||
];
|
||||
|
||||
$res = Event::firstOrCreate(['id' => (int) $row['id']], $event);
|
||||
$res = Event::updateOrCreate(['id' => (int) $row['id']], $event);
|
||||
if ($res) {
|
||||
$event_id = $res->id;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user