fix(ScheduledTask): change timeout property type to int for consistency in syncData method
This commit is contained in:
parent
334892d1ff
commit
4fa0c581c8
1 changed files with 2 additions and 2 deletions
|
|
@ -41,7 +41,7 @@ class Show extends Component
|
|||
public ?string $container = null;
|
||||
|
||||
#[Validate(['integer', 'required', 'min:60', 'max:3600'])]
|
||||
public int $timeout = 300;
|
||||
public $timeout = 300;
|
||||
|
||||
#[Locked]
|
||||
public ?string $application_uuid;
|
||||
|
|
@ -102,7 +102,7 @@ public function syncData(bool $toModel = false)
|
|||
$this->task->command = str($this->command)->trim()->value();
|
||||
$this->task->frequency = str($this->frequency)->trim()->value();
|
||||
$this->task->container = str($this->container)->trim()->value();
|
||||
$this->task->timeout = $this->timeout;
|
||||
$this->task->timeout = (int) $this->timeout;
|
||||
$this->task->save();
|
||||
} else {
|
||||
$this->isEnabled = $this->task->enabled;
|
||||
|
|
|
|||
Loading…
Reference in a new issue