mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 18:40:37 +08:00
修复更新历史定时任务规则未生效
This commit is contained in:
1 parent
22eedebf14
commit
99281a061e
1 file changed
+2
-2
@@ -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),
|
||||
|
||||
Reference in new issue
Block a user