mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-17 17:54:32 +08:00
修复定时任务搜索
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user