|
@@ -203,13 +203,11 @@ class MatchTeamGroupService extends CrudService {
|
|
|
});
|
|
|
d.person = parr;
|
|
|
} else if (person_type === 'TeamApply') {
|
|
|
- console.log(person);
|
|
|
|
|
|
const teamApplys = await this.teamApplyModel.find({ _id: person });
|
|
|
const parr = [];
|
|
|
- for (const p of parr) {
|
|
|
+ for (const p of person) {
|
|
|
const r = teamApplys.find(f => ObjectId(f._id).equals(p));
|
|
|
- console.log(r);
|
|
|
if (r) {
|
|
|
const { one_member_name, two_member_name } = r;
|
|
|
parr.push({ id: p, name: `${one_member_name}-${two_member_name}` });
|
|
@@ -236,13 +234,11 @@ class MatchTeamGroupService extends CrudService {
|
|
|
});
|
|
|
d.person = parr;
|
|
|
} else if (person_type === 'TeamApply') {
|
|
|
- console.log(person);
|
|
|
|
|
|
const teamApplys = await this.teamApplyModel.find({ _id: person });
|
|
|
const parr = [];
|
|
|
- for (const p of parr) {
|
|
|
+ for (const p of person) {
|
|
|
const r = teamApplys.find(f => ObjectId(f._id).equals(p));
|
|
|
- console.log(r);
|
|
|
if (r) {
|
|
|
const { one_member_name, two_member_name } = r;
|
|
|
parr.push({ id: p, name: `${one_member_name}-${two_member_name}` });
|