mirror of
https://github.com/whyour/qinglong.git
synced 2026-06-30 20:35:09 +08:00
定时任务默认倒序
This commit is contained in:
@@ -163,7 +163,10 @@ export default class CronService {
|
||||
}
|
||||
}
|
||||
try {
|
||||
const result = await CrontabModel.findAll({ where: query });
|
||||
const result = await CrontabModel.findAll({
|
||||
where: query,
|
||||
order: [['updatedAt', 'DESC']],
|
||||
});
|
||||
return result as any;
|
||||
} catch (error) {
|
||||
throw error;
|
||||
|
||||
Reference in New Issue
Block a user