mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-18 14:23:44 +02:00
Fix handling of backup tasks; closes #2067
This commit is contained in:
@@ -25,7 +25,7 @@ class StoreTaskRequest extends ViewScheduleRequest
|
||||
{
|
||||
return [
|
||||
'action' => 'required|in:command,power,backup',
|
||||
'payload' => 'required_unless:action,backup|string',
|
||||
'payload' => 'required_unless:action,backup|string|nullable',
|
||||
'time_offset' => 'required|numeric|min:0|max:900',
|
||||
'sequence_id' => 'sometimes|required|numeric|min:1',
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user