@riocrypto/common-server 1.0.2545 → 1.0.2546

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.
@@ -357,6 +357,11 @@ const buildOrder = (mongoose) => {
357
357
  orderSchema.index({ userId: 1, createdAt: 1, country: 1 });
358
358
  orderSchema.index({ brokerId: 1, createdAt: 1, side: 1, status: 1 });
359
359
  orderSchema.index({ brokerId: 1, createdAt: 1, country: 1 });
360
+ orderSchema.index({ originUserId: 1, createdAt: 1 });
361
+ orderSchema.index({ destinationUserId: 1, createdAt: 1 });
362
+ orderSchema.index({ "TWAP.sessionId": 1 }, { sparse: true });
363
+ orderSchema.index({ userId: 1, "TWAP.sessionId": 1, createdAt: 1 });
364
+ orderSchema.index({ brokerId: 1, "TWAP.sessionId": 1, createdAt: 1 });
360
365
  orderSchema.statics.build = (attrs) => {
361
366
  return new Order(attrs);
362
367
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2545",
3
+ "version": "1.0.2546",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",