mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-07 08:52:35 +00:00
refactoring - remove unused code
This commit is contained in:
@ -2,7 +2,6 @@
|
||||
|
||||
namespace App\Jobs\Service;
|
||||
|
||||
use App\Events\Broadcast;
|
||||
use App\Jobs\Job;
|
||||
use App\Models\Service;
|
||||
use App\SSHCommands\Service\RestartServiceCommand;
|
||||
@ -54,22 +53,11 @@ public function handle(): void
|
||||
);
|
||||
$this->service->status = $this->successStatus;
|
||||
$this->service->save();
|
||||
event(
|
||||
new Broadcast('update-service-finished', [
|
||||
'service' => $this->service,
|
||||
])
|
||||
);
|
||||
}
|
||||
|
||||
public function failed(): void
|
||||
{
|
||||
$this->service->status = $this->failStatus;
|
||||
$this->service->save();
|
||||
event(
|
||||
new Broadcast('update-service-failed', [
|
||||
'message' => $this->service->name.' '.$this->failMessage,
|
||||
'service' => $this->service,
|
||||
])
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user