mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-23 06:46:09 +08:00
修改定时任务排序
This commit is contained in:
parent
102e447f78
commit
b9e49b181a
|
@ -168,7 +168,12 @@ export default class CronService {
|
|||
}
|
||||
let condition: any = {
|
||||
where: query,
|
||||
order: [['createdAt', 'DESC']],
|
||||
order: [
|
||||
['isPinned', 'DESC'],
|
||||
['isDisabled', 'ASC'],
|
||||
['status', 'ASC'],
|
||||
['createdAt', 'DESC'],
|
||||
],
|
||||
};
|
||||
if (page && size) {
|
||||
condition.offset = (page - 1) * size;
|
||||
|
|
Loading…
Reference in New Issue
Block a user