修复更新历史定时任务规则未生效

This commit is contained in:
whyour 2023-09-24 13:39:52 +08:00
parent 22eedebf14
commit 99281a061e

View File

@ -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),