修复同时执行多个ql repo命令脚本比对错误,独立ql extra命令

This commit is contained in:
whyour
2021-05-12 22:50:07 +08:00
parent 394eccab5e
commit 4abefccc5b
2 changed files with 21 additions and 12 deletions
+6 -2
View File
@@ -57,7 +57,7 @@ export default class CronService {
const tab = new Crontab({ ...doc, ...other });
tab.saved = false;
const newDoc = await this.updateDb(tab);
await this.set_crontab();
await this.set_crontab(this.isSixCron(newDoc));
return newDoc;
}
@@ -99,6 +99,9 @@ export default class CronService {
{
command: reg,
},
{
schedule: reg,
},
],
};
}
@@ -214,7 +217,7 @@ export default class CronService {
{ $set: { status: CrontabStatus.disabled } },
{ multi: true },
);
await this.set_crontab();
await this.set_crontab(true);
}
public async enabled(ids: string[]) {
@@ -223,6 +226,7 @@ export default class CronService {
{ $set: { status: CrontabStatus.idle } },
{ multi: true },
);
await this.set_crontab(true);
}
public async log(_id: string) {