Fix handling of backup tasks; closes #2067
This commit is contained in:
parent
364b645b81
commit
693b9eab0c
5 changed files with 35 additions and 11 deletions
|
@ -90,7 +90,7 @@ class Task extends Model
|
|||
'schedule_id' => 'required|numeric|exists:schedules,id',
|
||||
'sequence_id' => 'required|numeric|min:1',
|
||||
'action' => 'required|string',
|
||||
'payload' => 'required|string',
|
||||
'payload' => 'required_unless:action,backup|string',
|
||||
'time_offset' => 'required|numeric|between:0,900',
|
||||
'is_queued' => 'boolean',
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue