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\Redirect;
|
||||
|
||||
use App\Events\Broadcast;
|
||||
use App\Jobs\Job;
|
||||
use App\Models\Redirect;
|
||||
|
||||
@ -22,21 +21,11 @@ public function handle(): void
|
||||
$this->redirect->site->server->webserver()->handler()->updateRedirects($this->redirect->site, $redirects);
|
||||
$this->redirect->status = 'ready';
|
||||
$this->redirect->save();
|
||||
event(
|
||||
new Broadcast('create-redirect-finished', [
|
||||
'redirect' => $this->redirect,
|
||||
])
|
||||
);
|
||||
}
|
||||
|
||||
public function failed(): void
|
||||
{
|
||||
$this->redirect->status = 'failed';
|
||||
$this->redirect->delete();
|
||||
event(
|
||||
new Broadcast('create-redirect-failed', [
|
||||
'redirect' => $this->redirect,
|
||||
])
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user