@riocrypto/common-server 1.0.515 → 1.0.516

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.
@@ -140,7 +140,7 @@ const authorize = (req, res, next, mongoose, authorizationTypes) => __awaiter(vo
140
140
  const BusinessUser = yield (0, business_user_1.buildBusinessUser)(mongoose);
141
141
  brokerBusinessUser = yield BusinessUser.findOne({
142
142
  authId: req.currentAuth.id,
143
- attributes: { $e: common_1.UserAttribute.broker },
143
+ attributes: { $in: [common_1.UserAttribute.broker] },
144
144
  });
145
145
  if (!brokerBusinessUser) {
146
146
  throw new Error();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.515",
3
+ "version": "1.0.516",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",