@riocrypto/common-server 1.0.681 → 1.0.682

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,7 +126,7 @@ const authorize = (req, res, next, mongoose, authorizationTypes) => __awaiter(vo
126
126
  try {
127
127
  const User = yield (0, user_1.buildUser)(mongoose);
128
128
  user = yield User.findOne({
129
- authId: req.currentAuth.id,
129
+ authIds: { $in: [req.currentAuth.id] },
130
130
  attributes: { $ne: common_1.UserAttribute.deleted },
131
131
  });
132
132
  }
@@ -143,7 +143,7 @@ const authorize = (req, res, next, mongoose, authorizationTypes) => __awaiter(vo
143
143
  try {
144
144
  const User = yield (0, user_1.buildUser)(mongoose);
145
145
  user = yield User.findOne({
146
- authId: req.currentAuth.id,
146
+ authIds: { $in: [req.currentAuth.id] },
147
147
  attributes: { $ne: common_1.UserAttribute.deleted },
148
148
  });
149
149
  if (!user) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.681",
3
+ "version": "1.0.682",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -24,7 +24,7 @@
24
24
  "@aws-sdk/client-s3": "^3.297.0",
25
25
  "@everapi/currencyapi-js": "^1.0.6",
26
26
  "@google-cloud/storage": "^6.9.5",
27
- "@riocrypto/common": "^1.0.621",
27
+ "@riocrypto/common": "^1.0.622",
28
28
  "@types/express": "^4.17.13",
29
29
  "axios": "^0.27.2",
30
30
  "ccxt": "^3.0.30",