lrf 3 місяців тому
батько
коміт
18b5a851fd

+ 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 };