Skip to content

Commit

Permalink
fix: remove verbose attribute from mongoose opts
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Jul 5, 2024
1 parent 1dff1d1 commit fd7944a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lib/mongoose-core.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export class MongooseCoreModule implements OnApplicationShutdown {
connectionErrorFactory,
lazyConnection,
onConnectionCreate,
verboseRetryLog,
...mongooseOptions
} = options;

Expand Down Expand Up @@ -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);
}),
Expand Down Expand Up @@ -108,6 +109,7 @@ export class MongooseCoreModule implements OnApplicationShutdown {
connectionErrorFactory,
lazyConnection,
onConnectionCreate,
verboseRetryLog,
...mongooseOptions
} = mongooseModuleOptions;

Expand All @@ -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);
}),
Expand Down

0 comments on commit fd7944a

Please sign in to comment.