mirror of
https://github.com/pterodactyl/panel.git
synced 2024-11-22 17:12:30 +01:00
Update validation rules for remote activity logs (#4526)
This commit is contained in:
parent
9b218f2190
commit
4032481a4f
@ -17,11 +17,11 @@ class ActivityEventRequest extends FormRequest
|
||||
return [
|
||||
'data' => ['required', 'array'],
|
||||
'data.*' => ['array'],
|
||||
'data.*.user' => ['present', 'uuid'],
|
||||
'data.*.user' => ['sometimes', 'nullable', 'uuid'],
|
||||
'data.*.server' => ['required', 'uuid'],
|
||||
'data.*.event' => ['required', 'string'],
|
||||
'data.*.metadata' => ['present', 'nullable', 'array'],
|
||||
'data.*.ip' => ['present', 'ip'],
|
||||
'data.*.ip' => ['sometimes', 'nullable', 'ip'],
|
||||
'data.*.timestamp' => ['required', 'string'],
|
||||
];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user