@riocrypto/common-server 1.0.1868 → 1.0.1870
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/build/models/order.js +2 -7
- package/package.json +1 -1
package/build/models/order.js
CHANGED
|
@@ -289,15 +289,10 @@ const buildOrder = (mongoose) => {
|
|
|
289
289
|
},
|
|
290
290
|
},
|
|
291
291
|
});
|
|
292
|
-
|
|
293
|
-
orderSchema.index({ userId: 1 });
|
|
294
|
-
orderSchema.index({ userId: 1, createdAt: 1 });
|
|
292
|
+
orderSchema.index({ userId: 1, createdAt: 1, side: 1, status: 1 });
|
|
295
293
|
orderSchema.index({ userId: 1, createdAt: 1, country: 1 });
|
|
296
|
-
orderSchema.index({
|
|
297
|
-
orderSchema.index({ brokerId: 1 });
|
|
298
|
-
orderSchema.index({ brokerId: 1, createdAt: 1 });
|
|
294
|
+
orderSchema.index({ brokerId: 1, createdAt: 1, side: 1, status: 1 });
|
|
299
295
|
orderSchema.index({ brokerId: 1, createdAt: 1, country: 1 });
|
|
300
|
-
orderSchema.index({ brokerId: 1, createdAt: 1, side: 1 });
|
|
301
296
|
orderSchema.statics.build = (attrs) => {
|
|
302
297
|
return new Order(attrs);
|
|
303
298
|
};
|