mirror of
https://github.com/whyour/qinglong.git
synced 2026-08-15 13:47:11 +08:00
修复更新历史定时任务规则未生效
This commit is contained in:
@@ -53,9 +53,9 @@ export default class CronService {
|
|||||||
return newDoc;
|
return newDoc;
|
||||||
}
|
}
|
||||||
if (this.isSixCron(doc) || doc.extra_schedules?.length) {
|
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([
|
await cronClient.addCron([
|
||||||
{
|
{
|
||||||
id: String(newDoc.id),
|
id: String(newDoc.id),
|
||||||
|
|||||||
Reference in New Issue
Block a user