zs %!s(int64=2) %!d(string=hai) anos
pai
achega
fa97890590
Modificáronse 1 ficheiros con 2 adicións e 3 borrados
  1. 2 3
      src/service/teamApply.service.ts

+ 2 - 3
src/service/teamApply.service.ts

@@ -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)
         throw new ServiceError(