mirror of
https://github.com/whyour/qinglong.git
synced 2026-06-30 20:35:09 +08:00
增加自动运行任务时任务状态展示
1. 添加bot远程地址 2. 增加文件后缀配置 3. 增加定时任务页数缓存
This commit is contained in:
@@ -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[]) {
|
||||
|
||||
Reference in New Issue
Block a user