refactor(ScheduledTask): clean up code formatting and remove unused import
This commit is contained in:
parent
282bb5c4cd
commit
798aab6955
3 changed files with 2 additions and 3 deletions
|
|
@ -75,7 +75,7 @@ public function submit()
|
||||||
public function saveScheduledTask()
|
public function saveScheduledTask()
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$task = new ScheduledTask();
|
$task = new ScheduledTask;
|
||||||
$task->name = $this->name;
|
$task->name = $this->name;
|
||||||
$task->command = $this->command;
|
$task->command = $this->command;
|
||||||
$task->frequency = $this->frequency;
|
$task->frequency = $this->frequency;
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
namespace App\Livewire\Project\Shared\ScheduledTask;
|
namespace App\Livewire\Project\Shared\ScheduledTask;
|
||||||
|
|
||||||
use App\Models\ScheduledTask;
|
|
||||||
use Illuminate\Support\Collection;
|
use Illuminate\Support\Collection;
|
||||||
use Livewire\Attributes\Locked;
|
use Livewire\Attributes\Locked;
|
||||||
use Livewire\Attributes\On;
|
use Livewire\Attributes\On;
|
||||||
|
|
@ -42,5 +41,4 @@ public function refreshTasks()
|
||||||
{
|
{
|
||||||
$this->resource->refresh();
|
$this->resource->refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -53,6 +53,7 @@ private function bootConfigs($notifiable): void
|
||||||
if (blank($type)) {
|
if (blank($type)) {
|
||||||
throw new Exception('No email settings found.');
|
throw new Exception('No email settings found.');
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue