mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-22 22:36:06 +08:00
修复更新历史定时任务规则未生效
This commit is contained in:
parent
22eedebf14
commit
99281a061e
|
@ -53,9 +53,9 @@ export default class CronService {
|
|||
return newDoc;
|
||||
}
|
||||
if (this.isSixCron(doc) || doc.extra_schedules?.length) {
|
||||
await cronClient.delCron([String(newDoc.id)]);
|
||||
await cronClient.delCron([String(doc.id)]);
|
||||
}
|
||||
if (this.isSixCron(newDoc) || doc.extra_schedules?.length) {
|
||||
if (this.isSixCron(newDoc) || newDoc.extra_schedules?.length) {
|
||||
await cronClient.addCron([
|
||||
{
|
||||
id: String(newDoc.id),
|
||||
|
|
Loading…
Reference in New Issue
Block a user