mirror of
https://github.com/ProxyPanel/ProxyPanel.git
synced 2026-04-05 03:58:39 +00:00
Fixed #280 VNet reload Job type Error
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Jobs\VNet;
|
||||
|
||||
use App\Models\Node;
|
||||
use Arr;
|
||||
use Exception;
|
||||
use Http;
|
||||
@@ -23,9 +24,13 @@ class reloadNode implements ShouldQueue
|
||||
|
||||
private Collection $nodes;
|
||||
|
||||
public function __construct(Collection $nodes)
|
||||
public function __construct(Collection|Node $nodes)
|
||||
{
|
||||
$this->nodes = $nodes;
|
||||
if ($nodes instanceof Collection) {
|
||||
$this->nodes = $nodes;
|
||||
} else {
|
||||
$this->nodes = $nodes->get();
|
||||
}
|
||||
}
|
||||
|
||||
public function handle(): bool
|
||||
|
||||
Reference in New Issue
Block a user