mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-15 10:14:47 +00:00
fix(validation): use int|string for Livewire numeric properties and remove nullable from API rules
This commit is contained in:
1 parent
15a98b52c9
commit
791aa10b3f
2 files changed
+9
-9
No files matched your search
@@ -16,16 +16,16 @@ class Advanced extends Component
|
||||
public string $serverDiskUsageCheckFrequency = '0 23 * * *';
|
||||
|
||||
#[Validate(['required', 'integer', 'min:1', 'max:99'])]
|
||||
public ?int $serverDiskUsageNotificationThreshold = 50;
|
||||
public int|string $serverDiskUsageNotificationThreshold = 50;
|
||||
|
||||
#[Validate(['required', 'integer', 'min:1'])]
|
||||
public ?int $concurrentBuilds = 1;
|
||||
public int|string $concurrentBuilds = 1;
|
||||
|
||||
#[Validate(['required', 'integer', 'min:1'])]
|
||||
public ?int $dynamicTimeout = 1;
|
||||
public int|string $dynamicTimeout = 1;
|
||||
|
||||
#[Validate(['required', 'integer', 'min:1'])]
|
||||
public ?int $deploymentQueueLimit = 25;
|
||||
public int|string $deploymentQueueLimit = 25;
|
||||
|
||||
public function mount(string $server_uuid)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user