From 9f6443813c280e287a02df4c2ae7320f7fadd875 Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Wed, 17 Apr 2024 15:37:27 +0700 Subject: [PATCH] fix --- src/controllers/StrategyController.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/controllers/StrategyController.ts b/src/controllers/StrategyController.ts index 4f1c702..7d24c27 100644 --- a/src/controllers/StrategyController.ts +++ b/src/controllers/StrategyController.ts @@ -56,6 +56,7 @@ export class StrategyController extends Controller { public async listStrategyChild1() { const listStrategyChild1 = await this.strategy1Repo.find({ relations: ["strategyChild2s", "strategyChild2s.strategyChild3s", "strategyChild2s.strategyChild3s.strategyChild4s", "strategyChild2s.strategyChild3s.strategyChild4s.strategyChild5s"], + order: { createdAt: "ASC" }, }); if (!listStrategyChild1 || listStrategyChild1.length === 0) {