INNER CODE UNIT · JavaScript
seq
ramiel/mongoose-sequence · lib/sequence.js:342
seq = this._options.start_seq - 1;
}
this._counterModel
.updateMany(condition, { $set: { seq } })
.then((data) => {
cb(null, data);
})
.catch((err) => {
cb(err);
});
};
/**
* Utility function to increment a counter in a transaction
*
* @method _setNextCounter
* @param {object} doc A mongoose model which need to receive the
* increment