@riocrypto/common 1.0.416 → 1.0.417

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.
@@ -121,6 +121,7 @@ const authorize = (req, res, next, mongoose, authorizationTypes) => __awaiter(vo
121
121
  businessUser = null;
122
122
  }
123
123
  const user = individualUser || businessUser;
124
+ console.log("final user is ", user);
124
125
  if (user) {
125
126
  req.user = user;
126
127
  }
@@ -133,6 +134,7 @@ const authorize = (req, res, next, mongoose, authorizationTypes) => __awaiter(vo
133
134
  if ((authorizationTypes.includes(authorization_type_1.AuthorizationType.User) ||
134
135
  authorizationTypes.includes(authorization_type_1.AuthorizationType.UserNoKYC)) &&
135
136
  ((_g = req.cookies) === null || _g === void 0 ? void 0 : _g.jwt)) {
137
+ console.log("chimichanga");
136
138
  throw new missing_user_error_1.MissingUserError();
137
139
  }
138
140
  console.log("throwing");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.416",
3
+ "version": "1.0.417",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",