Skip to content

Commit

Permalink
Update lib/mongoose-core.module.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec authored Apr 5, 2024
1 parent 388edd2 commit 64fdcdd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/mongoose-core.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,7 @@ export class MongooseCoreModule implements OnApplicationShutdown {
return connection;
}

const mongooseOnConnectionCreate = onConnectionCreate || (() => {});
if (mongooseOnConnectionCreate) {
mongooseOnConnectionCreate(connection);
}
onConnectionCreate?.(connection);

return connection.asPromise();
}
Expand Down

0 comments on commit 64fdcdd

Please sign in to comment.