forest-express
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "forest-express", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "The official Express liana for Forest", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -22,4 +22,8 @@ 'use strict'; | ||
var associationField = getAssociationField(req.params.associationName); | ||
var associationModel = models[associationField]; | ||
var associationModel = _.find(models, function (model) { | ||
return Implementation.getModelName(model) === associationField; | ||
}); | ||
if (!associationModel) { return res.status(404).send(); } | ||
return new Implementation.HasManyGetter(model, associationModel, opts, | ||
@@ -26,0 +30,0 @@ params) |
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
53012
1471