mongoose-plugin-autoinc-fix
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -303,5 +303,5 @@ 'use strict'; | ||
// Every time documents in this schema are saved, run this logic. | ||
schema.post('validate', function (next) { | ||
schema.post('validate', function (doc, next) { | ||
// Get reference to the document being saved. | ||
const doc = this; | ||
//const doc: MongooseDocument = this; | ||
// $FlowFixMe | ||
@@ -308,0 +308,0 @@ const alreadyGetId = doc.__maiRanOnce === true; |
{ | ||
"name": "mongoose-plugin-autoinc-fix", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "==fix-bug==This plugin allows you to auto-increment any field on any mongoose schema that you wish (forked mongoose-auto-increment in 2018).", | ||
@@ -5,0 +5,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
29501