Skip to content

Fix ChangeStream.close to return a Promise<void> like the driver#14740

Merged
vkarpov15 merged 1 commit intoAutomattic:masterfrom
orgads:stream-close-promise
Jul 11, 2024
Merged

Fix ChangeStream.close to return a Promise<void> like the driver#14740
vkarpov15 merged 1 commit intoAutomattic:masterfrom
orgads:stream-close-promise

Conversation

@orgads
Copy link
Copy Markdown
Contributor

@orgads orgads commented Jul 11, 2024

Summary

Client code that calls stream.close().then(...) fails with TypeError, since mongoose close() returns undefined.

Client code that calls stream.close().then(...) fails with TypeError,
since mongoose close() returns undefined.
Copy link
Copy Markdown
Collaborator

@vkarpov15 vkarpov15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 👍

@vkarpov15 vkarpov15 added this to the 8.5.1 milestone Jul 11, 2024
@vkarpov15 vkarpov15 merged commit 090297e into Automattic:master Jul 11, 2024
@orgads orgads deleted the stream-close-promise branch July 11, 2024 16:30
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.

2 participants