lrf 2 years ago
parent
commit
b3c38c59e7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/service/view/goods.js

+ 1 - 1
app/service/view/goods.js

@@ -116,7 +116,7 @@ class GoodsService extends CrudService {
       },
     });
     const res = await this.goodsModel.aggregate(pipeline);
-    return res;
+    return _.head(res);
   }