Skip to content

Commit 3c6f1ef

Browse files
authored
Merge pull request #22 from jargoud/fix/import-job
fix(import): use disk from model rather than configuration
2 parents 82cc810 + 2995a1e commit 3c6f1ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Jobs/ImportJob.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class ImportJob implements ShouldQueue
2525
* @param array<string, mixed> $exportParameters
2626
*/
2727
public function __construct(
28-
private ImportExport $export,
28+
private readonly ImportExport $export,
2929
private array $exportParameters
3030
) {
3131
}
@@ -55,7 +55,7 @@ public function handle(): void
5555
Excel::import(
5656
$importObject,
5757
$this->export->{ImportExport::COLUMN_FILENAME},
58-
config('backpack-async-import-export.disk')
58+
$this->export->{ImportExport::COLUMN_DISK},
5959
);
6060

6161
$this->export->{ImportExport::COLUMN_STATUS} = ImportExportStatus::Successful;

0 commit comments

Comments
 (0)