@riocrypto/common-server 1.0.1406 → 1.0.1407

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.
@@ -126,8 +126,7 @@ const authorize = (req, res, next, mongoose, authorizationTypes) => __awaiter(vo
126
126
  req.user = user;
127
127
  }
128
128
  else {
129
- if (user.kycStatus === common_1.KYCStatus.Approved ||
130
- ((_f = (_e = user.KYC) === null || _e === void 0 ? void 0 : _e.MX) === null || _f === void 0 ? void 0 : _f.status) === common_1.KYCStatus.Approved ||
129
+ if (((_f = (_e = user.KYC) === null || _e === void 0 ? void 0 : _e.MX) === null || _f === void 0 ? void 0 : _f.status) === common_1.KYCStatus.Approved ||
131
130
  ((_h = (_g = user.KYC) === null || _g === void 0 ? void 0 : _g.PE) === null || _h === void 0 ? void 0 : _h.status) === common_1.KYCStatus.Approved) {
132
131
  req.user = user;
133
132
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1406",
3
+ "version": "1.0.1407",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",