chore(xo-server): rename removeSchedule to deleteSchedule

This commit is contained in:
Julien Fontanet 2018-03-05 16:56:50 +01:00
parent aa533c20d6
commit 927d3135c4
3 changed files with 3 additions and 3 deletions

View File

@ -54,7 +54,7 @@ set.params = {
}
async function delete_ ({ id }) {
await this.removeSchedule(id)
await this.deleteSchedule(id)
}
delete_.permission = 'admin'

View File

@ -314,7 +314,7 @@ export default class BackupNg {
app.removeJob(id),
asyncMap(schedules, schedule => {
if (schedule.id === id) {
app.removeSchedule(schedule.id)
app.deleteSchedule(schedule.id)
}
}),
])

View File

@ -112,7 +112,7 @@ export default class Scheduling {
return this._db.get()
}
async removeSchedule (id: string) {
async deleteSchedule (id: string) {
this._stop(id)
await this._db.remove(id)
}