diff --git a/app/Jobs/NodelistImport.php b/app/Jobs/NodelistImport.php index 241d030..c65334c 100644 --- a/app/Jobs/NodelistImport.php +++ b/app/Jobs/NodelistImport.php @@ -62,7 +62,9 @@ class NodelistImport implements ShouldQueue { switch ($key) { case 'jobname': - return sprintf('%s-%s',$this->domain?->name,is_object($this->file) ? $this->file->name : $this->file); + return ($this->domain) + ? sprintf('%s-%s',$this->domain?->name,(is_object($this->file) ? $this->file->name : $this->file)) + : (is_object($this->file) ? $this->file->name : $this->file); default: return NULL;