diff --git a/app/Console/Commands/DbMapper/Bet365Tennis.php b/app/Console/Commands/DbMapper/Bet365Tennis.php index 9c3f92de..5f3e1fec 100644 --- a/app/Console/Commands/DbMapper/Bet365Tennis.php +++ b/app/Console/Commands/DbMapper/Bet365Tennis.php @@ -33,7 +33,9 @@ class Bet365Tennis FindGroup::run($mapper); - print_r($mapper); + if ($debug) { + Notice::note($mapper, 'b'); + } if ($mapper['txodds_home_id'] && $mapper['txodds_away_id'] && $mapper['txodds_group_id']) { @@ -45,7 +47,7 @@ class Bet365Tennis ->where('home_id', $mapper['txodds_home_id']) ->where('away_id', $mapper['txodds_away_id']) ->where('competition_group_id', $mapper['txodds_group_id']) - ->first()->toArray(); + ->first(); if ($event) { StoreElement::store($mapper); @@ -63,12 +65,14 @@ class Bet365Tennis $arr['betsapi_id'] = $mapper['betsapi_id']; } if ($arr) { - Event::where('id', $event['id'])->update($arr); + Event::where('id', $event->id)->update($arr); + } + + if ($debug) { + Notice::note($event->toArray(), 'b'); } - dd($event); } } } - } }