lrf 2 年 前
コミット
b3c38c59e7
1 ファイル変更1 行追加1 行削除
  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);
   }