Fix whoopsie.

This commit is contained in:
James Cole
2025-12-30 21:05:50 +01:00
parent 7f4f95097b
commit df03899588

View File

@@ -79,7 +79,7 @@ class UpdateRequest extends FormRequest
'start_date' => 'date|nullable',
'target_date' => 'date|nullable|after:start_date',
'notes' => 'max:65000',
'accounts' => 'required',
'accounts' => 'array',
'accounts.*' => 'array',
'accounts.*.account_id' => ['required', 'numeric', 'belongsToUser:accounts,id'],
'accounts.*.current_amount' => ['numeric', 'nullable', new IsValidZeroOrMoreAmount(true)],