@uniorganization/uni-lib 2.0.17 → 2.0.18

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.
@@ -39,7 +39,7 @@ let JwtStrategy = class JwtStrategy extends (0, passport_1.PassportStrategy)(pas
39
39
  }
40
40
  validate(payload) {
41
41
  return __awaiter(this, void 0, void 0, function* () {
42
- const user = yield this.userRepository.findOne(payload.user.id);
42
+ const user = yield this.userRepository.findOne({ where: { id: payload.user.id } });
43
43
  if (!user) {
44
44
  throw new common_1.UnauthorizedException('User not found');
45
45
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniorganization/uni-lib",
3
- "version": "2.0.17",
3
+ "version": "2.0.18",
4
4
  "description": "UNI Library",
5
5
  "author": "Jhomiguel",
6
6
  "main": "dist/index.js",