修复更新cron , fix #32

This commit is contained in:
whyour
2021-04-11 20:46:47 +08:00
parent 17c50d0c9e
commit 947a753610
3 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ export default class CronService {
const doc = await this.get(_id);
const tab = new Crontab({ ...doc, ...other });
tab.saved = false;
const newDoc = await this.update(tab);
const newDoc = await this.updateDb(tab);
await this.set_crontab();
return newDoc;
}