@coding-blocks/express-jsonapi-controller
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -137,7 +137,7 @@ const JSONAPISerializer = require('jsonapi-serializer').Serializer | ||
generateRelationshipWhereClause (req, modelName) { | ||
if (!req) return {} | ||
if (!req) return null | ||
const { filterRelationships } = req.query | ||
if (filterRelationships && filterRelationships[modelName]) return filterRelationships[modelName] | ||
return {} | ||
return null | ||
} | ||
@@ -144,0 +144,0 @@ |
{ | ||
"name": "@coding-blocks/express-jsonapi-controller", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Generic Base Controller for express to generate JSON API response", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
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
162994