mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 18:40:37 +08:00
修复定时任务搜索
This commit is contained in:
1 parent
3b3d45da29
commit
7516acbc41
1 file changed
+1
-1
@@ -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