refactoring - remove unused code

This commit is contained in:
Saeed Vaziry
2024-03-06 20:33:33 +01:00
parent cfc0645002
commit 9d705592da
32 changed files with 3 additions and 442 deletions

View File

@ -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!'),
])
);
}
}