增加自动运行任务时任务状态展示

1.  添加bot远程地址
2. 增加文件后缀配置
3. 增加定时任务页数缓存
This commit is contained in:
hanhh
2021-06-13 18:18:01 +08:00
parent 424a1e6491
commit 1923ceb5c2
9 changed files with 96 additions and 10 deletions
+8 -2
View File
@@ -83,8 +83,14 @@ export default class CronService {
});
}
public async status(_id: string, stopped: boolean) {
this.cronDb.update({ _id }, { $set: { stopped, saved: false } });
public async status({
ids,
status,
}: {
ids: string[];
status: CrontabStatus;
}) {
this.cronDb.update({ _id: { $in: ids } }, { $set: { status } });
}
public async remove(ids: string[]) {