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

[FIX] API to retrieve rooms was returning empty objects #9737

Merged
merged 2 commits into from
Feb 17, 2018

Conversation

rodrigok
Copy link
Member

@RocketChat/core

Closes #9531

@rodrigok rodrigok added this to the 0.62.0 milestone Feb 15, 2018
@rodrigok rodrigok added this to Desirable in 0.62.0 via automation Feb 15, 2018
@engelgabriel engelgabriel temporarily deployed to rocket-chat-pr-9737 February 15, 2018 22:27 Inactive
@rodrigok rodrigok moved this from Desirable to To Do in 0.62.0 Feb 15, 2018
});
data = data.filter(item => item);
Copy link
Member

Choose a reason for hiding this comment

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

this is weird to see, but it works 😂

Copy link
Member

Choose a reason for hiding this comment

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

I suppose returning null evaluates to false during the filter resulting in null being excluded?

Very odd looking indeed 😁

@rodrigok rodrigok moved this from To Do to Review/QA in 0.62.0 Feb 16, 2018
@rodrigok rodrigok merged commit a62a6ab into develop Feb 17, 2018
0.62.0 automation moved this from Review/QA to Done Feb 17, 2018
@rodrigok rodrigok deleted the hotfix/empty-rooms branch February 17, 2018 18:01
@rodrigok rodrigok mentioned this pull request Feb 28, 2018
@rodrigok rodrigok changed the title [FIX] API to retrive rooms was returning empty objects [FIX] API to retrieve rooms was returning empty objects May 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
0.62.0
  
Done
Development

Successfully merging this pull request may close these issues.

[BUG] API rooms.get may be returning empty object when caching isn't found
4 participants