lrf 5 달 전
부모
커밋
18b5a851fd
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 2
      src/controller/match/matchExt.controller.ts
  2. 1 1
      src/controller/match/matchRegistration.controller.ts

+ 2 - 2
src/controller/match/matchExt.controller.ts

@@ -495,7 +495,7 @@ export class MatchExtController implements BaseController {
       const match_id = get(i, 'match_id');
       const match = await this.matchService.fetch({ id: match_id });
       if (match) newItem.match_name = get(match, 'name');
-      newItem = this.matchRegService.dealData(newItem);
+      newItem = await this.matchRegService.dealData(newItem);
       fillList.push(newItem);
     }
     return fillList;
@@ -680,7 +680,7 @@ export class MatchExtController implements BaseController {
     const newList = []
     for (const i of list) {
       let newItem = cloneDeep(i)
-      newItem = this.matchRegService.dealData(newItem);
+      newItem = await this.matchRegService.dealData(newItem);
       newList.push(newItem)
     }
     return newList;

+ 1 - 1
src/controller/match/matchRegistration.controller.ts

@@ -53,7 +53,7 @@ export class MatchRegistrationController implements BaseController {
       const match_id = get(i, 'match_id');
       const match = await this.matchService.fetch({ id: match_id });
       if (match) newItem.match_name = get(match, 'name');
-      newItem = this.service.dealData(newItem);
+      newItem = await this.service.dealData(newItem);
       fillList.push(newItem);
     }
     return { data: fillList, total };