@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.
- package/package.json +1 -1
- package/schemas/Order.js +6 -1
package/package.json
CHANGED
package/schemas/Order.js
CHANGED
|
@@ -167,7 +167,7 @@ const Order = new Schema({
|
|
|
167
167
|
index: true
|
|
168
168
|
},
|
|
169
169
|
|
|
170
|
-
/**
|
|
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
|