zs 1 年之前
父节点
当前提交
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;