File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ Sequence.prototype._setHooks = function() {
207
207
if ( err ) return next ( ) ;
208
208
if ( obj ) return next ( ) ;
209
209
else {
210
- referenceValue = _this . _getCounterReferenceField ( _thisquery . _update [ '$setOnInsert' ] ) ;
210
+ referenceValue = _this . _getCounterReferenceField ( _thisquery . _update ) ;
211
211
_this . _setNextCounter ( _this . _options . reference_fields , referenceValue , function ( err , seq ) {
212
212
if ( err ) return next ( ) ;
213
213
_thisquery . _update [ '$setOnInsert' ] = _thisquery . _update [ '$setOnInsert' ] || { } ;
@@ -231,7 +231,7 @@ Sequence.prototype._setHooks = function() {
231
231
if ( err ) return next ( ) ;
232
232
if ( obj ) return next ( ) ;
233
233
else {
234
- referenceValue = _this . _getCounterReferenceField ( _thisquery . _update [ '$setOnInsert' ] ) ;
234
+ referenceValue = _this . _getCounterReferenceField ( _thisquery . _update ) ;
235
235
_this . _setNextCounter ( _this . _options . reference_fields , referenceValue , function ( err , seq ) {
236
236
if ( err ) return next ( ) ;
237
237
_thisquery . _update [ '$setOnInsert' ] = _thisquery . _update [ '$setOnInsert' ] || { } ;
You can’t perform that action at this time.
0 commit comments