mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 14:36:17 +00:00
refactoring - remove unused code
This commit is contained in:
@ -2,7 +2,6 @@
|
||||
|
||||
namespace App\Jobs\Queue;
|
||||
|
||||
use App\Events\Broadcast;
|
||||
use App\Jobs\Job;
|
||||
use App\Models\Queue;
|
||||
|
||||
@ -18,20 +17,10 @@ public function __construct(Queue $worker)
|
||||
public function handle(): void
|
||||
{
|
||||
$logs = $this->worker->server->processManager()->handler()->getLogs($this->worker->log_file);
|
||||
event(
|
||||
new Broadcast('get-logs-finished', [
|
||||
'id' => $this->worker->id,
|
||||
'logs' => $logs,
|
||||
])
|
||||
);
|
||||
}
|
||||
|
||||
public function failed(): void
|
||||
{
|
||||
event(
|
||||
new Broadcast('get-logs-failed', [
|
||||
'message' => __('Failed to download the logs!'),
|
||||
])
|
||||
);
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user