zs 2 년 전
부모
커밋
c3708d9357
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/service/application.service.ts

+ 1 - 1
src/service/application.service.ts

@@ -107,7 +107,7 @@ export class ApplicationService extends BaseService<modelType> {
     const res = [];
     for (const val of team) {
       const data = await this.TeamModel.findById(val);
-      res.push(data);
+      if (data) res.push(data);
     }
     const list = this.pagination(skip, limit, res);
     const total = list.length;