mongoose-sort-encrypted-field
Advanced tools
Comparing version 0.3.1 to 0.3.2
@@ -42,3 +42,3 @@ // mongoose is not in package.json to avoid compatibility issues with npm package user | ||
}); | ||
schema.pre("updateOne", async function preUpdateOne(res, next) { | ||
schema.pre("updateOne", async function preUpdateOne(next) { | ||
const update = this.getUpdate(); | ||
@@ -78,3 +78,3 @@ for (const fieldName in sortFields) { | ||
}); | ||
schema.pre("updateMany", async function preUpdateMany(res, next) { | ||
schema.pre("updateMany", async function preUpdateMany(next) { | ||
const update = this.getUpdate(); | ||
@@ -81,0 +81,0 @@ for (const fieldName in sortFields) { |
{ | ||
"name": "mongoose-sort-encrypted-field", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "Mongoose plugin to enable sorting on encrypted fields", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
27656