exodus-framework 2.0.972 → 2.0.974

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.
@@ -98,14 +98,14 @@ class AccessMiddleware extends _controller.default {
98
98
  statusCode: _http.EHttpResponseCode.informationBlocked
99
99
  });
100
100
  }
101
- if (exodusServiceId != process.env.SECURITY_JWT_ISSUER) {
101
+ if (exodusServiceId && exodusServiceId != process.env.SECURITY_JWT_ISSUER) {
102
102
  throw new _app.HttpError({
103
103
  message: 'O token de serviço é inválido',
104
104
  statusCode: _http.EHttpResponseCode.informationBlocked
105
105
  });
106
106
  }
107
107
  envUuid = tenantId;
108
- if (account.type != 'ADMINISTRATOR') {
108
+ if (account && account.type != 'ADMINISTRATOR') {
109
109
  requestor.environmentId = account.envUuid;
110
110
  envUuid = account.envUuid;
111
111
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exodus-framework",
3
- "version": "2.0.972",
3
+ "version": "2.0.974",
4
4
  "description": "Exodus Framework",
5
5
  "author": "jhownpaixao",
6
6
  "license": "ISC",