|
@@ -41,9 +41,8 @@ export class TeamApplyService extends BaseService<modelType> {
|
|
);
|
|
);
|
|
}
|
|
}
|
|
// 检查比赛人员申请
|
|
// 检查比赛人员申请
|
|
- const applyan = await this.model.count({
|
|
|
|
- apply_id: data.apply_id,
|
|
|
|
- status: '1',
|
|
|
|
|
|
+ const applyan = await this.TeamModel.count({
|
|
|
|
+ member: { $in: [data.apply_id] },
|
|
});
|
|
});
|
|
if (applyan > 0)
|
|
if (applyan > 0)
|
|
throw new ServiceError(
|
|
throw new ServiceError(
|