mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-04 23:42:34 +00:00
refactoring - remove unused code
This commit is contained in:
@ -2,7 +2,6 @@
|
||||
|
||||
namespace App\Jobs\Script;
|
||||
|
||||
use App\Events\Broadcast;
|
||||
use App\Jobs\Job;
|
||||
use App\Models\Script;
|
||||
use App\Models\ScriptExecution;
|
||||
@ -41,21 +40,11 @@ public function handle(): void
|
||||
);
|
||||
$this->scriptExecution->finished_at = now();
|
||||
$this->scriptExecution->save();
|
||||
event(
|
||||
new Broadcast('execute-script-finished', [
|
||||
'execution' => $this->scriptExecution,
|
||||
])
|
||||
);
|
||||
}
|
||||
|
||||
public function failed(): void
|
||||
{
|
||||
$this->scriptExecution->finished_at = now();
|
||||
$this->scriptExecution->save();
|
||||
event(
|
||||
new Broadcast('execute-script-failed', [
|
||||
'execution' => $this->scriptExecution,
|
||||
])
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user