diff --git a/app/Console/Commands/Grapper/Sofascore/SqlMover.php b/app/Console/Commands/Grapper/Sofascore/SqlMover.php index ae4a5001..c453fdb7 100644 --- a/app/Console/Commands/Grapper/Sofascore/SqlMover.php +++ b/app/Console/Commands/Grapper/Sofascore/SqlMover.php @@ -22,11 +22,12 @@ class SqlMover } Notice::note('StatistikoEvent', 'b'); - $res = StatistikoPlayer::groupBy('match_id')->pluck('match_id'); - foreach ($res as $match_id) { - $has = StatistikoEvent::where('match_id', (int) $match_id)->first(); + $res = StatistikoPlayer::groupBy('match_id')->get; + foreach ($res as $pl) { + $has = StatistikoEvent::where('match_id', (int) $pl->match_id)->first(); if (!$has) - echo $match_id . "\n"; + dd($pl); + // echo $match_id . "\n"; } Notice::note('done', 'bb', 1);