Change NodelistImport display when using job:list

This commit is contained in:
Deon George 2024-11-11 21:58:28 +11:00
parent aabc8b5a65
commit 24144de193

View File

@ -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;