Prefix is an optional argument, so default it to blank

This commit is contained in:
2024-06-04 18:40:04 +10:00
parent 27cdb02b06
commit 1753111f8f
4 changed files with 4 additions and 4 deletions

View File

@@ -35,6 +35,6 @@ class FileareaImport extends Command
public function handle(): int
{
$do = Domain::where('name',strtolower($this->argument('domain')))->singleOrFail();
return Job::dispatchSync($this->argument('file'),$do,$this->option('prefix'),$this->option('unlink'));
return Job::dispatchSync($this->argument('file'),$do,$this->option('prefix') ?: '',$this->option('unlink'));
}
}