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;