@riocrypto/common-server 1.0.2939 → 1.0.2941

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.
@@ -56,6 +56,9 @@ const buildInboundBankDeposit = (mongoose) => {
56
56
  },
57
57
  },
58
58
  });
59
+ // The deposit listeners dedupe every incoming event by provider id. Without
60
+ // this index each lookup scanned the whole collection on the primary.
61
+ InboundBankDepositSchema.index({ destinationProviderId: 1 });
59
62
  InboundBankDepositSchema.statics.build = (attrs) => {
60
63
  return new InboundBankDeposit(attrs);
61
64
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2939",
3
+ "version": "1.0.2941",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -28,7 +28,7 @@
28
28
  "@google-cloud/secret-manager": "^5.6.0",
29
29
  "@google-cloud/storage": "^7.19.0",
30
30
  "@hyperdx/node-opentelemetry": "^0.10.3",
31
- "@riocrypto/common": "1.0.2735",
31
+ "@riocrypto/common": "1.0.2736",
32
32
  "@slack/web-api": "^7.15.0",
33
33
  "@types/express": "^4.17.25",
34
34
  "axios": "1.18.1",