From 6225d06442741fe808535804f8d1660ae18b3530 Mon Sep 17 00:00:00 2001 From: kilo5hz <1005hz@outlook.com> Date: Fri, 7 Jan 2022 21:49:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/services/cron.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/back/services/cron.ts b/back/services/cron.ts index 0c7a7db1..6ca0d274 100644 --- a/back/services/cron.ts +++ b/back/services/cron.ts @@ -158,7 +158,7 @@ export default class CronService { function createRegexp(text:string) { return { [Op.or]: [ - { [Op.like]: `%${searchText}&` }, + { [Op.like]: `%${text}%` }, { [Op.like]: `%${encodeURIComponent(text)}%` }, ], };