Change NodelistImport display when using job:list

This commit is contained in:
Deon George 2024-11-11 21:58:28 +11:00
parent 58fe142f7c
commit 95969a857b

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;