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