Skip to content

Commit

Permalink
Merge pull request #5 from nadeemramsing/master
Browse files Browse the repository at this point in the history
v1.0.7: this -> ins
  • Loading branch information
adarshasnah authored Apr 3, 2022
2 parents 166fa9a + 5324b1e commit 56bf156
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ var plugin = function (schema, model) {

var ignoreField = '_ignore.' + item;

if (this[ignoreField])
if (ins[ignoreField])
return callback()

var name = (model + '.' + item).toLowerCase();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mongoose-auto-number",
"version": "1.0.6",
"version": "1.0.7",
"description": "Mongoose plugin to auto increment numeric field",
"main": "lib/index.js",
"scripts": {
Expand Down

0 comments on commit 56bf156

Please sign in to comment.