From de71d1a25814cae2c08859127e8681a136adaf9a Mon Sep 17 00:00:00 2001 From: whyour Date: Fri, 11 Aug 2023 22:25:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BB=BB=E5=8A=A1=E7=AD=9B?= =?UTF-8?q?=E9=80=89=E6=9D=A1=E4=BB=B6=E5=88=87=E6=8D=A2?= 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 ef1eb025..1d915da4 100644 --- a/back/services/cron.ts +++ b/back/services/cron.ts @@ -161,7 +161,7 @@ export default class CronService { case 'In': q[Op.or] = [ { - [property]: value, + [property]: Array.isArray(value) ? value : [value], }, property === 'status' && value.includes(2) ? { isDisabled: 1 } @@ -172,7 +172,7 @@ export default class CronService { q[Op.and] = [ { [property]: { - [Op.notIn]: value, + [Op.notIn]: Array.isArray(value) ? value : [value], }, }, property === 'status' && value.includes(2)