From 01163e3ea384b23a577095a55bf886eac7c1292d Mon Sep 17 00:00:00 2001 From: whyour Date: Fri, 21 Jan 2022 22:38:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9A=E6=97=B6=E4=BB=BB=E5=8A=A1=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E6=94=B9=E4=B8=BA=E5=88=9B=E5=BB=BA=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E5=80=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/services/cron.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/back/services/cron.ts b/back/services/cron.ts index ce4bec20..6f24484c 100644 --- a/back/services/cron.ts +++ b/back/services/cron.ts @@ -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) {