Skip to content

fix(chat): deleteRoom sockets params#1446

Merged
kkopanidis merged 3 commits intomainfrom
fix/deleteRoomSockets
Mar 11, 2026
Merged

fix(chat): deleteRoom sockets params#1446
kkopanidis merged 3 commits intomainfrom
fix/deleteRoomSockets

Conversation

@ioanniskemerlis
Copy link
Copy Markdown
Contributor

@ioanniskemerlis ioanniskemerlis commented Mar 11, 2026

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Build-related changes
  • Other (please describe)

Does this PR introduce a breaking change?

  • Yes
  • No

The PR fulfills these requirements:

  • It's submitted to the main branch
  • When resolving a specific issue, it's referenced in the PR's description (e.g. fix #xxx, where "xxx" is the issue number)

If adding a new feature, the PR's description includes:

  • A convincing reason for adding this feature

Other information:

The culprit was that deleteOne doesnt return the deleted doc, but only the count. We were using the returned (undefined) fields from deleteOne and passed them to socketPush below as params.

Fixed this by doing a findOne first to get the doc and pass it correctly

@kkopanidis kkopanidis merged commit c7ce92c into main Mar 11, 2026
6 checks passed
@kkopanidis kkopanidis deleted the fix/deleteRoomSockets branch March 11, 2026 13:23
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.

3 participants