Fix node_ids rule for database host (#1885)

This commit is contained in:
Boy132 2025-11-10 12:25:58 +01:00 committed by GitHub
parent 5c3b0919aa
commit 216a3484f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -60,7 +60,7 @@ class DatabaseHost extends Model implements Validatable
'username' => ['required', 'string', 'max:32'],
'password' => ['nullable', 'string'],
'node_ids' => ['nullable', 'array'],
'node_ids.*' => ['required', 'integer,exists:nodes,id'],
'node_ids.*' => ['required', 'integer', 'exists:nodes,id'],
];
protected function casts(): array