From 95969a857bddb81ed463fa39599dac8955755146 Mon Sep 17 00:00:00 2001 From: Deon George <deon@dege.au> Date: Mon, 11 Nov 2024 21:58:28 +1100 Subject: [PATCH] Change NodelistImport display when using job:list --- app/Jobs/NodelistImport.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;