Skip to content

Commit e5e10c3

Browse files
committed
Bumped patch version for release
1 parent c724d3f commit e5e10c3

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ If you would like to submit a pull request with any changes you make, please fee
191191

192192
# Legal
193193

194-
Code is Copyright (C) Campbell Software Solutions 2014 - 2016.
194+
Code is Copyright (C) Campbell Software Solutions 2014 - 2017.
195195

196196
This module is available under terms of the LGPL V3 license. Hence you can use it in other proprietary projects
197197
but any changes to the library should be made available.

lib/id-validator.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ IdValidator.prototype.validateSchema = function (schema, message, connection, al
5858
if (validateFunction) {
5959
schema.path(path).validate(function (value, respond) {
6060
var conditionsCopy = conditions;
61+
//A query may not implement an isModified function.
6162
if(!!this.isModified && !this.isModified(path)){
6263
return respond(true);
6364
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mongoose-id-validator",
3-
"version": "0.4.0",
3+
"version": "0.4.1",
44
"description": "Mongoose plugin to validate that ObjectID references refer to objects that actually exist in the referenced collection",
55
"author": {
66
"name": "Martin Campbell",

0 commit comments

Comments
 (0)