|
@@ -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;
|