修复定时任务搜索

This commit is contained in:
whyour 2022-08-31 00:02:35 +08:00
parent 3b3d45da29
commit 7516acbc41

View File

@ -189,7 +189,7 @@ export default class CronService {
} }
try { try {
const result = await CrontabModel.findAll(condition); const result = await CrontabModel.findAll(condition);
const count = await CrontabModel.count(); const count = await CrontabModel.count({ where: query });
return { data: result, total: count }; return { data: result, total: count };
} catch (error) { } catch (error) {
throw error; throw error;