Skip to content

Commit

Permalink
v1.0.7: this -> ins
Browse files Browse the repository at this point in the history
  • Loading branch information
Nadeem Ramsing committed Apr 1, 2022
1 parent a8be4a7 commit 5324b1e
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 5324b1e

Please sign in to comment.