From 7516acbc41f248ecc3506939d403154812401327 Mon Sep 17 00:00:00 2001 From: whyour Date: Wed, 31 Aug 2022 00:02:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AE=9A=E6=97=B6=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=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 9d8e8d5b..a2556176 100644 --- a/back/services/cron.ts +++ b/back/services/cron.ts @@ -189,7 +189,7 @@ export default class CronService { } try { const result = await CrontabModel.findAll(condition); - const count = await CrontabModel.count(); + const count = await CrontabModel.count({ where: query }); return { data: result, total: count }; } catch (error) { throw error;