File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2361,10 +2361,10 @@ Query.prototype._find = async function _find() {
23612361
23622362 // Separate options to pass down to `completeMany()` in case we need to
23632363 // set a session on the document
2364- const completeManyOptions = Object . assign ( { } , {
2364+ const completeManyOptions = {
23652365 session : this && this . options && this . options . session || null ,
23662366 lean : mongooseOptions . lean || null
2367- } ) ;
2367+ } ;
23682368
23692369 const options = this . _optionsForExec ( ) ;
23702370
@@ -2382,7 +2382,7 @@ Query.prototype._find = async function _find() {
23822382 }
23832383
23842384 if ( ! mongooseOptions . populate ) {
2385- const versionKey = _this . schema . options . versionKey ;
2385+ const versionKey = this . schema . options . versionKey ;
23862386 if ( mongooseOptions . lean && mongooseOptions . lean . versionKey === false && versionKey ) {
23872387 docs . forEach ( ( doc ) => {
23882388 if ( versionKey in doc ) {
You can’t perform that action at this time.
0 commit comments