From 99281a061eefa7af99ce6385324fecc3b446ee31 Mon Sep 17 00:00:00 2001 From: whyour Date: Sun, 24 Sep 2023 13:39:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9B=B4=E6=96=B0=E5=8E=86?= =?UTF-8?q?=E5=8F=B2=E5=AE=9A=E6=97=B6=E4=BB=BB=E5=8A=A1=E8=A7=84=E5=88=99?= =?UTF-8?q?=E6=9C=AA=E7=94=9F=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/services/cron.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/back/services/cron.ts b/back/services/cron.ts index 9eb903ca..09876d04 100644 --- a/back/services/cron.ts +++ b/back/services/cron.ts @@ -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),