Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make typescript-express-reviews seed script automatically exit when done #237

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vkarpov15
Copy link
Collaborator

With http2, you now need to explicitly close() any connection you open, or that connection will stay open forever and prevent the process from exiting. This PR makes the reviews sample app's seed script call mongoose.disconnect(), which is equivalent to calling close() on every connection.

@vkarpov15 vkarpov15 requested a review from a team as a code owner February 20, 2024 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant