File tree 1 file changed +3
-3
lines changed
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() {
2361
2361
2362
2362
// Separate options to pass down to `completeMany()` in case we need to
2363
2363
// set a session on the document
2364
- const completeManyOptions = Object . assign ( { } , {
2364
+ const completeManyOptions = {
2365
2365
session : this && this . options && this . options . session || null ,
2366
2366
lean : mongooseOptions . lean || null
2367
- } ) ;
2367
+ } ;
2368
2368
2369
2369
const options = this . _optionsForExec ( ) ;
2370
2370
@@ -2382,7 +2382,7 @@ Query.prototype._find = async function _find() {
2382
2382
}
2383
2383
2384
2384
if ( ! mongooseOptions . populate ) {
2385
- const versionKey = _this . schema . options . versionKey ;
2385
+ const versionKey = this . schema . options . versionKey ;
2386
2386
if ( mongooseOptions . lean && mongooseOptions . lean . versionKey === false && versionKey ) {
2387
2387
docs . forEach ( ( doc ) => {
2388
2388
if ( versionKey in doc ) {
You can’t perform that action at this time.
0 commit comments