From 893912b30422ae5966cf112a83528af15ba96b21 Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Wed, 17 Apr 2024 14:18:05 +0700 Subject: [PATCH] fix bug --- src/controllers/StrategyController.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/controllers/StrategyController.ts b/src/controllers/StrategyController.ts index f3194bc..4f1c702 100644 --- a/src/controllers/StrategyController.ts +++ b/src/controllers/StrategyController.ts @@ -210,7 +210,6 @@ export class StrategyController extends Controller { ) { let strategyRepo: any; let strategyChild: any; - let repoSave: any; switch (body.levelnode) { case 1: @@ -231,7 +230,7 @@ export class StrategyController extends Controller { if (!strategyChild) { throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบข้อมูลยุทธศาสตร์"); } - repoSave = this.strategy2Repo; + strategyChild.strategyChild2Name = body.name; break; case 3: strategyRepo = this.strategy3Repo;