lrf %!s(int64=3) %!d(string=hai) anos
pai
achega
ffceb21803
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 });
     if (projection) pipeline.push({ $project: projection });
     else {
     else {
-      const defaultProject = this.getSelectFalse();
+      const defaultProject = await this.getSelectFalse();
       if (defaultProject)pipeline.push({ $project: defaultProject });
       if (defaultProject)pipeline.push({ $project: defaultProject });
     }
     }
     const rs = await this.model.aggregate(pipeline);
     const rs = await this.model.aggregate(pipeline);