Added subject so that it works with job:list
This commit is contained in:
@@ -24,6 +24,8 @@ class NodelistImport implements ShouldQueue
|
||||
protected const LOGKEY = 'JNI';
|
||||
private const importkey = 'nodelist';
|
||||
|
||||
public const QUEUE = 'nodelist';
|
||||
|
||||
private File|string $file;
|
||||
private ?string $domain;
|
||||
private bool $delete_file;
|
||||
@@ -43,6 +45,19 @@ class NodelistImport implements ShouldQueue
|
||||
$this->domain = $domain;
|
||||
$this->delete_file = $delete_file;
|
||||
$this->delete_recs = $delete_recs;
|
||||
|
||||
$this->onQueue(self::QUEUE);
|
||||
}
|
||||
|
||||
public function __get($key): mixed
|
||||
{
|
||||
switch ($key) {
|
||||
case 'subject':
|
||||
return sprintf('%s-%s',$this->domain?->name,is_object($this->file) ? $this->file->name : $this->file);
|
||||
|
||||
default:
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user