mongoose-url-slugs
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -68,6 +68,6 @@ var extend = require('extend'); | ||
schema.statics.findBySlug = function (slug, fields, options, cb) { | ||
schema.statics.findBySlug = function (slug, fields, additionalOptions, cb) { | ||
var q = {}; | ||
q[options.field] = slug; | ||
return this.findOne(q, fields, options, cb); | ||
return this.findOne(q, fields, additionalOptions, cb); | ||
}; | ||
@@ -74,0 +74,0 @@ |
@@ -9,3 +9,3 @@ { | ||
"description": "Create URL compatiable slugs on mongoose models, ensuring uniqueness.", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"keywords": [ | ||
@@ -12,0 +12,0 @@ "mongoose slugs", |
@@ -67,2 +67,3 @@ # Mongoose URL Slugs | ||
* v0.0.9 (2014-06-14) -- findBySlug bug fixed. | ||
* v0.0.8 (2014-06-10) -- slug generation improved. | ||
@@ -69,0 +70,0 @@ * v0.0.6 (2014-06-10) -- incremented slug generation bug fix and minor optimizations. |
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
8832
95