Skip to content

Commit

Permalink
Update lib/mongoose-core.module.ts
Browse files Browse the repository at this point in the history
Return MongooseError

Co-authored-by: Kamil Mysliwiec <mail@kamilmysliwiec.com>
  • Loading branch information
jiayisheji and kamilmysliwiec committed Oct 27, 2022
1 parent eec8f18 commit fa2491e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mongoose-core.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class MongooseCoreModule implements OnApplicationShutdown {
connectionFactory || ((connection) => connection);

const mongooseConnectionError =
connectionError || ((error) => {});
connectionError || ((error) => error);

const mongooseConnectionName = getConnectionToken(connectionName);

Expand Down

0 comments on commit fa2491e

Please sign in to comment.