lrf 2 vuotta sitten
vanhempi
commit
0525d80cf9
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      app/service/matchTeamGroup.js

+ 2 - 2
app/service/matchTeamGroup.js

@@ -86,12 +86,12 @@ class MatchTeamGroupService extends CrudService {
     const obj = { match_id, group_id, project_id };
     if (type === '1') {
       // 双打,找到这个项目所有的申请,且审核通过的
-      obj.person_type = 'TeamApply';
+      obj.person_type = 'Race.TeamApply';
       const teamApplys = await this.teamApplyModel.find({ project_id, status: '1' });
       personList = JSON.parse(JSON.stringify(teamApplys));
     } else {
       // 单打,找到这个项目所有申请报名的信息
-      obj.person_type = 'User';
+      obj.person_type = 'Race.User';
       const sign = await this.matchSignModel.find({ project_id, pay_status: '1' });
       personList = JSON.parse(JSON.stringify(sign));
     }