定时任务默认改为创建时间倒序

This commit is contained in:
whyour 2022-01-21 22:38:13 +08:00
parent 7f986fdb2d
commit 01163e3ea3

View File

@ -165,7 +165,7 @@ export default class CronService {
try {
const result = await CrontabModel.findAll({
where: query,
order: [['updatedAt', 'DESC']],
order: [['createdAt', 'DESC']],
});
return result as any;
} catch (error) {