Skip to content

Commit

Permalink
fix en conditions, de const a let
Browse files Browse the repository at this point in the history
  • Loading branch information
Juan Carlos Muñoz committed Sep 5, 2023
1 parent e74307e commit dec711e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ module.exports = function (schema, options) {
const parentDoc = isSubdocument ? this.ownerDocument() : this;
const isNew = typeof parentDoc.isNew === "boolean" ? parentDoc.isNew : !isQuery;

const conditions = {};
let conditions = {};
each(paths, name => {
let pathValue;

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-unique-validator",
"version": "2.1.5",
"version": "2.1.6",
"description": "mongoose-unique-validator is a plugin which adds pre-save validation for unique fields within a Mongoose schema.",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit dec711e

Please sign in to comment.