check double upload player event wip

This commit is contained in:
salam committed 2026-07-15 12:29:48 +02:00
1 parent 9954f47139
commit fd7b8fadad
7 files changed
+86 -91

No files matched your search

+2 -2
View File
@@ -9,14 +9,14 @@ use Spatie\SimpleExcel\SimpleExcelReader;
class ImportEvents
{
public static function run(string $filePath, string $importmode): void
public static function run(string $filePath): void
{
$now = now()->format('Y-m-d H:i:s');
SimpleExcelReader::create(storage_path('app/public/' . $filePath))
->getRows()
->chunk(1000)
->each(function (LazyCollection $chunk) use ($now, $importmode) {
->each(function (LazyCollection $chunk) use ($now) {
foreach ($chunk as $row) {