chore(xo-server): explicitly check for a schedule
This commit is contained in:
parent
e4b11a793b
commit
197273193e
@ -187,6 +187,10 @@ export default class BackupNg {
|
||||
runJobId,
|
||||
schedule,
|
||||
}) => {
|
||||
if (schedule === undefined) {
|
||||
throw new Error('backup job cannot run without a schedule')
|
||||
}
|
||||
|
||||
const job: BackupJob = (job_: any)
|
||||
const vms = app.getObjects({
|
||||
filter: createPredicate({
|
||||
|
Loading…
Reference in New Issue
Block a user