This commit is contained in:
salam committed 2026-05-21 12:49:24 +02:00
1 parent 09bfeffd25
commit 0a914008e9
1 file changed
+3 -2
+3 -2
View File
@@ -23,13 +23,14 @@ class ImportPlayer
$update_array = [];
foreach ($fieldnames as $key => $name) {
$offset = $key + 3;
$offset = (int) $key + 4;
$update_array[$name] = $row[$offset];
}
StatistikoPlayer::where('sport_id', $row[0])
->where('match_id', $row[1])
->where('player_id', $row[2])
->where('ss_player_id', $row[2])
->where('tm_player_id', $row[3])
->update($update_array, ['upsert' => true]);
}
});