mirror of
https://github.com/whyour/qinglong.git
synced 2025-07-28 15:36:07 +08:00
修复批量停止任务
This commit is contained in:
parent
d3f11ca2f8
commit
175e7b6c51
|
@ -183,6 +183,7 @@ export default class CronService {
|
||||||
this.cronDb.update(
|
this.cronDb.update(
|
||||||
{ _id: { $in: ids } },
|
{ _id: { $in: ids } },
|
||||||
{ $set: { status: CrontabStatus.idle }, $unset: { pid: true } },
|
{ $set: { status: CrontabStatus.idle }, $unset: { pid: true } },
|
||||||
|
{ multi: true },
|
||||||
);
|
);
|
||||||
resolve();
|
resolve();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user