lrf il y a 3 ans
Parent
commit
ffceb21803
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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);