Update nodelist parsing now that we have mailer_system
This commit is contained in:
@@ -15,7 +15,7 @@ class NodelistImport extends Command
|
||||
* @var string
|
||||
*/
|
||||
protected $signature = 'nodelist:import'
|
||||
.' {file : File ID}'
|
||||
.' {file : File ID | filename}'
|
||||
.' {domain? : Domain Name}'
|
||||
.' {--D|delete : Delete old data for the date}'
|
||||
.' {--U|unlink : Delete file after import}';
|
||||
@@ -34,6 +34,11 @@ class NodelistImport extends Command
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
return Job::dispatchSync(File::findOrFail($this->argument('file')),$this->argument('domain'),$this->option('delete'),$this->option('unlink'));
|
||||
return Job::dispatchSync(
|
||||
is_numeric($x=$this->argument('file')) ? File::findOrFail($x) : $x,
|
||||
$this->argument('domain'),
|
||||
$this->option('delete'),
|
||||
$this->option('unlink')
|
||||
);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user