lrf402788946 %!s(int64=4) %!d(string=hai) anos
pai
achega
a130667a4f
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      app/service/statistics/index.js

+ 2 - 2
app/service/statistics/index.js

@@ -264,9 +264,9 @@ class IndexService extends CrudService {
       .aggregate()
       .match({
         dock_id: ObjectId(dock_id),
-        'goodsList.status': '1',
+        'productList.status': '1',
       })
-      .unwind('$goodsList')
+      .unwind('$productList')
       .group({
         _id: '$dock_id',
         count: { $sum: 1 },