@riocrypto/common-server 1.0.2608 → 1.0.2611

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.
@@ -57,6 +57,15 @@ const buildSTPMXNWithdrawal = (mongoose) => {
57
57
  ret.id = ret._id.valueOf();
58
58
  delete ret._id;
59
59
  delete ret.__v;
60
+ if (ret.STPWithdrawals && Array.isArray(ret.STPWithdrawals)) {
61
+ ret.STPWithdrawals = ret.STPWithdrawals.map((withdrawal) => {
62
+ if (withdrawal._id) {
63
+ withdrawal.id = withdrawal._id.valueOf();
64
+ delete withdrawal._id;
65
+ }
66
+ return withdrawal;
67
+ });
68
+ }
60
69
  },
61
70
  },
62
71
  });
@@ -66,6 +66,16 @@ const buildFireblocksTransfer = (mongoose) => {
66
66
  ret.id = ret._id;
67
67
  delete ret._id;
68
68
  delete ret.__v;
69
+ if (ret.fireblocksTransfers &&
70
+ Array.isArray(ret.fireblocksTransfers)) {
71
+ ret.fireblocksTransfers = ret.fireblocksTransfers.map((transfer) => {
72
+ if (transfer._id) {
73
+ transfer.id = transfer._id.valueOf();
74
+ delete transfer._id;
75
+ }
76
+ return transfer;
77
+ });
78
+ }
69
79
  },
70
80
  },
71
81
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2608",
3
+ "version": "1.0.2611",
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.3.0",
29
29
  "@google-cloud/storage": "^6.9.5",
30
30
  "@hyperdx/node-opentelemetry": "^0.7.0",
31
- "@riocrypto/common": "^1.0.2409",
31
+ "@riocrypto/common": "^1.0.2411",
32
32
  "@types/express": "^4.17.13",
33
33
  "axios": "^1.7.4",
34
34
  "crypto-js": "^4.2.0",