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

This commit is contained in:
whyour
2022-01-21 22:38:13 +08:00
parent 7f986fdb2d
commit 01163e3ea3
+1 -1
View File
@@ -165,7 +165,7 @@ export default class CronService {
try { try {
const result = await CrontabModel.findAll({ const result = await CrontabModel.findAll({
where: query, where: query,
order: [['updatedAt', 'DESC']], order: [['createdAt', 'DESC']],
}); });
return result as any; return result as any;
} catch (error) { } catch (error) {