Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nestjs/mongoose
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 10.0.7
Choose a base ref
...
head repository: nestjs/mongoose
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: fd7944a20738e2b3549223cb7e8a43f23f0c56a4
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Jul 5, 2024

  1. fix: remove verbose attribute from mongoose opts

    kamilmysliwiec committed Jul 5, 2024

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    kamilmysliwiec Kamil Mysliwiec
    Copy the full SHA
    fd7944a View commit details
Showing with 4 additions and 6 deletions.
  1. +4 −6 lib/mongoose-core.module.ts
10 changes: 4 additions & 6 deletions lib/mongoose-core.module.ts
Original file line number Diff line number Diff line change
@@ -44,6 +44,7 @@ export class MongooseCoreModule implements OnApplicationShutdown {
connectionErrorFactory,
lazyConnection,
onConnectionCreate,
verboseRetryLog,
...mongooseOptions
} = options;

@@ -73,7 +74,7 @@ export class MongooseCoreModule implements OnApplicationShutdown {
mongooseConnectionName,
),
).pipe(
handleRetry(retryAttempts, retryDelay, options.verboseRetryLog),
handleRetry(retryAttempts, retryDelay, verboseRetryLog),
catchError((error) => {
throw mongooseConnectionError(error);
}),
@@ -108,6 +109,7 @@ export class MongooseCoreModule implements OnApplicationShutdown {
connectionErrorFactory,
lazyConnection,
onConnectionCreate,
verboseRetryLog,
...mongooseOptions
} = mongooseModuleOptions;

@@ -128,11 +130,7 @@ export class MongooseCoreModule implements OnApplicationShutdown {
mongooseConnectionName,
),
).pipe(
handleRetry(
retryAttempts,
retryDelay,
mongooseOptions.verboseRetryLog,
),
handleRetry(retryAttempts, retryDelay, verboseRetryLog),
catchError((error) => {
throw mongooseConnectionError(error);
}),