mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 09:45:36 +08:00
定时任务默认倒序
This commit is contained in:
1 parent
ba341b69ac
commit
5b6843b5c0
2 files changed
+17
-10
No files matched your search
@@ -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