@riocrypto/common-server 1.0.2815 → 1.0.2816
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.
|
@@ -91,6 +91,14 @@ const buildFireblocksTransfer = (mongoose) => {
|
|
|
91
91
|
},
|
|
92
92
|
},
|
|
93
93
|
});
|
|
94
|
+
// Backs the dispatch worker poll ({ type, "fireblocksTransfers.status": queued })
|
|
95
|
+
// and the reconciliation sweeper ($elemMatch on status). Without it, both run as
|
|
96
|
+
// full collection scans on every tick.
|
|
97
|
+
FireblocksTransferSchema.index({ type: 1, "fireblocksTransfers.status": 1 });
|
|
98
|
+
// Back the Fireblocks webhook correlation ($or on rioId / fireblocksTransferId)
|
|
99
|
+
// and the reconciliation lookups by rioId.
|
|
100
|
+
FireblocksTransferSchema.index({ "fireblocksTransfers.rioId": 1 });
|
|
101
|
+
FireblocksTransferSchema.index({ "fireblocksTransfers.fireblocksTransferId": 1 });
|
|
94
102
|
FireblocksTransferSchema.statics.build = (attrs) => {
|
|
95
103
|
return new FireblocksTransfer(attrs);
|
|
96
104
|
};
|