@pintahub/database-schemas 5.2.0 → 5.2.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/schemas/Order.js +6 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pintahub/database-schemas",
3
- "version": "5.2.0",
3
+ "version": "5.2.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/schemas/Order.js CHANGED
@@ -167,7 +167,7 @@ const Order = new Schema({
167
167
  index: true
168
168
  },
169
169
 
170
- /** Number of line items */
170
+ /** Total quantity of items in the order (sum of all line item quantities) */
171
171
  items_count: {
172
172
  type: Number
173
173
  },
@@ -238,4 +238,9 @@ Order.index({
238
238
  'shipping_address.name': 'text'
239
239
  })
240
240
 
241
+ Order.index({
242
+ store: 1,
243
+ created_at: -1
244
+ })
245
+
241
246
  module.exports = Order