|
@@ -82,7 +82,7 @@ class CrudService extends NafService {
|
|
|
// 再将数据过滤
|
|
|
if (projection) pipeline.push({ $project: projection });
|
|
|
else {
|
|
|
- const defaultProject = this.getSelectFalse();
|
|
|
+ const defaultProject = await this.getSelectFalse();
|
|
|
if (defaultProject)pipeline.push({ $project: defaultProject });
|
|
|
}
|
|
|
const rs = await this.model.aggregate(pipeline);
|