lrf 3 years ago
parent
commit
ffceb21803
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/service/crud-service.js

+ 1 - 1
lib/service/crud-service.js

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