From 2995a1e0a303c3d0590e1c85f5fd9735816d2ecf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20ARGOUD?= Date: Fri, 29 Nov 2024 11:41:32 +0100 Subject: [PATCH] fix(import): use disk from model rather than configuration --- src/Jobs/ImportJob.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Jobs/ImportJob.php b/src/Jobs/ImportJob.php index 6a8f16d..7186fb3 100644 --- a/src/Jobs/ImportJob.php +++ b/src/Jobs/ImportJob.php @@ -25,7 +25,7 @@ class ImportJob implements ShouldQueue * @param array $exportParameters */ public function __construct( - private ImportExport $export, + private readonly ImportExport $export, private array $exportParameters ) { } @@ -55,7 +55,7 @@ public function handle(): void Excel::import( $importObject, $this->export->{ImportExport::COLUMN_FILENAME}, - config('backpack-async-import-export.disk') + $this->export->{ImportExport::COLUMN_DISK}, ); $this->export->{ImportExport::COLUMN_STATUS} = ImportExportStatus::Successful;