lrf 2 năm trước cách đây
mục cha
commit
b3c38c59e7
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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);
   }