From e4ad8f512e2a8c3bb1d3bee8dd5d0197be55fc72 Mon Sep 17 00:00:00 2001 From: whyour Date: Sun, 11 Sep 2022 22:10:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=A2=E9=98=85=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/services/subscription.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/back/services/subscription.ts b/back/services/subscription.ts index fa36a3bd..205567a5 100644 --- a/back/services/subscription.ts +++ b/back/services/subscription.ts @@ -62,7 +62,10 @@ export default class SubscriptionService { try { const result = await SubscriptionModel.findAll({ where: query, - order: [['createdAt', 'DESC']], + order: [ + ['is_disabled', 'ASC'], + ['createdAt', 'DESC'], + ], }); return result as any; } catch (error) {