chore(xo-server): rename removeSchedule to deleteSchedule
This commit is contained in:
parent
aa533c20d6
commit
927d3135c4
@ -54,7 +54,7 @@ set.params = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function delete_ ({ id }) {
|
async function delete_ ({ id }) {
|
||||||
await this.removeSchedule(id)
|
await this.deleteSchedule(id)
|
||||||
}
|
}
|
||||||
|
|
||||||
delete_.permission = 'admin'
|
delete_.permission = 'admin'
|
||||||
|
@ -314,7 +314,7 @@ export default class BackupNg {
|
|||||||
app.removeJob(id),
|
app.removeJob(id),
|
||||||
asyncMap(schedules, schedule => {
|
asyncMap(schedules, schedule => {
|
||||||
if (schedule.id === id) {
|
if (schedule.id === id) {
|
||||||
app.removeSchedule(schedule.id)
|
app.deleteSchedule(schedule.id)
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
])
|
])
|
||||||
|
@ -112,7 +112,7 @@ export default class Scheduling {
|
|||||||
return this._db.get()
|
return this._db.get()
|
||||||
}
|
}
|
||||||
|
|
||||||
async removeSchedule (id: string) {
|
async deleteSchedule (id: string) {
|
||||||
this._stop(id)
|
this._stop(id)
|
||||||
await this._db.remove(id)
|
await this._db.remove(id)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user