forest-express
Advanced tools
Comparing version 10.0.0-beta.1 to 10.0.0-beta.2
@@ -79,3 +79,3 @@ "use strict"; | ||
var schema = Schemas.schemas[model.name]; | ||
var modelRelationship = getAssociationModel(schema, request.body.relationship_field); | ||
var modelRelationship = getAssociationModel(schema, request.body.relationshipFieldName); | ||
promise = new Implementation.LeaderboardStatGetter(model, modelRelationship, params, request.user).perform(); | ||
@@ -82,0 +82,0 @@ } else { |
@@ -363,4 +363,5 @@ "use strict"; | ||
renderingId = user.renderingId, userId = user.id; | ||
_context10.next = 4; | ||
return this.forestAdminClient.permissionService.canRetrieveChart({ | ||
_context10.prev = 2; | ||
_context10.next = 5; | ||
return this.forestAdminClient.permissionService.canExecuteChart({ | ||
renderingId: renderingId, | ||
@@ -371,7 +372,7 @@ userId: userId, | ||
case 4: | ||
case 5: | ||
canRetrieveChart = _context10.sent; | ||
if (canRetrieveChart) { | ||
_context10.next = 7; | ||
_context10.next = 8; | ||
break; | ||
@@ -382,3 +383,21 @@ } | ||
case 7: | ||
case 8: | ||
_context10.next = 15; | ||
break; | ||
case 10: | ||
_context10.prev = 10; | ||
_context10.t0 = _context10["catch"](2); | ||
if (!(_context10.t0 instanceof _forestadminClient.EmptySQLQueryError || _context10.t0 instanceof _forestadminClient.NonSelectSQLQueryError || _context10.t0 instanceof _forestadminClient.ChainedSQLQueryError)) { | ||
_context10.next = 14; | ||
break; | ||
} | ||
throw new _badRequestError["default"](_context10.t0.message); | ||
case 14: | ||
throw _context10.t0; | ||
case 15: | ||
case "end": | ||
@@ -388,3 +407,3 @@ return _context10.stop(); | ||
} | ||
}, _callee10, this); | ||
}, _callee10, this, [[2, 10]]); | ||
})); | ||
@@ -391,0 +410,0 @@ |
@@ -9,2 +9,4 @@ "use strict"; | ||
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof")); | ||
var _ = require('lodash'); | ||
@@ -21,2 +23,6 @@ | ||
var parseFiltersString = function parseFiltersString(filtersString) { | ||
if ((0, _typeof2["default"])(filtersString) === 'object') { | ||
return filtersString; | ||
} | ||
try { | ||
@@ -23,0 +29,0 @@ return filtersString ? JSON.parse(filtersString) : null; |
{ | ||
"name": "forest-express", | ||
"description": "Official package for all Forest Express Lianas", | ||
"version": "10.0.0-beta.1", | ||
"version": "10.0.0-beta.2", | ||
"author": "Sandro Munda <sandro@munda.me>", | ||
@@ -31,3 +31,3 @@ "contributors": [ | ||
"@forestadmin/context": "1.31.0", | ||
"@forestadmin/forestadmin-client": "1.0.0-alpha.1", | ||
"@forestadmin/forestadmin-client": "1.0.0-alpha.2", | ||
"base32-encode": "1.1.1", | ||
@@ -34,0 +34,0 @@ "bitwise-xor": "0.0.0", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
814521
15975
+ Added@forestadmin/forestadmin-client@1.0.0-alpha.2(transitive)
- Removed@forestadmin/forestadmin-client@1.0.0-alpha.1(transitive)