Skip to content

Commit fd7944a

Browse files
fix: remove verbose attribute from mongoose opts
1 parent 1dff1d1 commit fd7944a

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

lib/mongoose-core.module.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export class MongooseCoreModule implements OnApplicationShutdown {
4444
connectionErrorFactory,
4545
lazyConnection,
4646
onConnectionCreate,
47+
verboseRetryLog,
4748
...mongooseOptions
4849
} = options;
4950

@@ -73,7 +74,7 @@ export class MongooseCoreModule implements OnApplicationShutdown {
7374
mongooseConnectionName,
7475
),
7576
).pipe(
76-
handleRetry(retryAttempts, retryDelay, options.verboseRetryLog),
77+
handleRetry(retryAttempts, retryDelay, verboseRetryLog),
7778
catchError((error) => {
7879
throw mongooseConnectionError(error);
7980
}),
@@ -108,6 +109,7 @@ export class MongooseCoreModule implements OnApplicationShutdown {
108109
connectionErrorFactory,
109110
lazyConnection,
110111
onConnectionCreate,
112+
verboseRetryLog,
111113
...mongooseOptions
112114
} = mongooseModuleOptions;
113115

@@ -128,11 +130,7 @@ export class MongooseCoreModule implements OnApplicationShutdown {
128130
mongooseConnectionName,
129131
),
130132
).pipe(
131-
handleRetry(
132-
retryAttempts,
133-
retryDelay,
134-
mongooseOptions.verboseRetryLog,
135-
),
133+
handleRetry(retryAttempts, retryDelay, verboseRetryLog),
136134
catchError((error) => {
137135
throw mongooseConnectionError(error);
138136
}),

0 commit comments

Comments
 (0)