@pintahub/database-schemas 5.4.0 → 5.4.2

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.4.0",
3
+ "version": "5.4.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -384,6 +384,8 @@ const Product = new Schema({
384
384
  }
385
385
  })
386
386
 
387
+ Product.index({ store: 1, status: 1, is_primary: 1, sales_count: -1 })
388
+
387
389
  /** Full-text search index */
388
390
  Product.index({
389
391
  title: 'text',
@@ -57,7 +57,7 @@ const ShortLog = new Schema({
57
57
  created_at: {
58
58
  type: Date,
59
59
  default: Date.now,
60
- expires: '30d',
60
+ expires: '60d',
61
61
  }
62
62
  })
63
63