main
Ilham Wara Nugroho 2025-10-02 13:25:21 +07:00
parent aca6cf830b
commit f41401387e
2 changed files with 153 additions and 154 deletions

View File

@ -31,6 +31,7 @@ public function model(array $row)
{
// cek kalau row kosong jangan insert
try {
if (
$row[0] === null &&
$row[1] === null &&
@ -74,5 +75,9 @@ public function model(array $row)
's3_l' => $row[16],
's3_p' => $row[17],
]);
} catch (\Throwable $th) {
dd($th->getMessage());
}
}
}

View File

@ -52,7 +52,6 @@ class DatasetRepository implements DatasetRepositoryInterface
throw new \Exception("Import {$importClass} tidak ditemukan");
}
try {
// dd($data);
return DB::transaction(function () use ($modelClass, $importClass, $file, $data) {
@ -173,11 +172,6 @@ class DatasetRepository implements DatasetRepositoryInterface
});
} catch (Exception $e) {
dd($e->getMessage());
}
}
public function getChartData($modelClass,$datasetId,$templateId)