@pintahub/database-schemas 5.5.2 → 5.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pintahub/database-schemas",
3
- "version": "5.5.2",
3
+ "version": "5.6.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -375,6 +375,13 @@ const Product = new Schema({
375
375
 
376
376
  Product.index({store: 1, status: 1, is_primary: 1, sales_count: -1})
377
377
 
378
+ Product.index({store: 1, status: 1, collections: 1, views_count: -1}, {
379
+ partialFilterExpression: {
380
+ status: 'active',
381
+ publications: 'online_store'
382
+ }
383
+ })
384
+
378
385
  Product.index({store: 1, product_type: 1, status: 1})
379
386
 
380
387
  /** Full-text search index */