@riocrypto/common-server 1.0.1418 → 1.0.1420

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.
@@ -20,14 +20,11 @@ const getUserTransactionLimits = (mongoose, id) => __awaiter(void 0, void 0, voi
20
20
  throw new common_1.NotFoundError("User");
21
21
  }
22
22
  const { volume } = yield (0, calculate_aggregate_volume_and_revenue_1.calculateAggregateVolumeAndRevenue)(mongoose, 30, user, true);
23
- console.log("usuario", user);
24
23
  //@ts-ignore
25
24
  let risk = user.risk;
26
- console.log("risk", risk);
27
25
  if (!risk) {
28
26
  //@ts-ignore
29
27
  risk = user.riskTier;
30
- console.log("risk", risk);
31
28
  }
32
29
  let limit = 0;
33
30
  if (risk === common_1.RiskTier.High) {
@@ -44,7 +41,6 @@ const getUserTransactionLimits = (mongoose, id) => __awaiter(void 0, void 0, voi
44
41
  limit = 100000;
45
42
  }
46
43
  }
47
- console.log("limit", limit);
48
44
  return { limit, used: volume };
49
45
  });
50
46
  exports.getUserTransactionLimits = getUserTransactionLimits;
@@ -342,34 +342,7 @@ const buildUser = (mongoose) => {
342
342
  },
343
343
  },
344
344
  businessData: {
345
- businessName: {
346
- type: String,
347
- },
348
- legalRepresentative: {
349
- name: {
350
- type: String,
351
- },
352
- email: {
353
- type: String,
354
- },
355
- status: {
356
- type: String,
357
- },
358
- },
359
- UBO: {
360
- name: {
361
- type: String,
362
- },
363
- email: {
364
- type: String,
365
- },
366
- id: {
367
- type: String,
368
- },
369
- status: {
370
- type: String,
371
- },
372
- },
345
+ type: Object,
373
346
  },
374
347
  individualData: {
375
348
  firstName: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1418",
3
+ "version": "1.0.1420",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -27,7 +27,7 @@
27
27
  "@everapi/currencyapi-js": "^1.0.6",
28
28
  "@google-cloud/storage": "^6.9.5",
29
29
  "@google-cloud/vision": "^4.0.2",
30
- "@riocrypto/common": "^1.0.1255",
30
+ "@riocrypto/common": "^1.0.1264",
31
31
  "@types/express": "^4.17.13",
32
32
  "axios": "^0.27.2",
33
33
  "ccxt": "^3.0.30",