-
Notifications
You must be signed in to change notification settings - Fork 10.9k
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
Use Users.findOneByAppId instead of querying directly #16480
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sampaiodiego
approved these changes
May 14, 2020
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤗
sampaiodiego
changed the title
[IMPROVE] Use Users.findOneByAppId instead of querying directly
Use Users.findOneByAppId instead of querying directly
May 14, 2020
ggazzo
added a commit
that referenced
this pull request
May 15, 2020
…to new/oauth_page * 'admin-refactor' of github.com:RocketChat/Rocket.Chat: [FIX] Directory search user placeholder (#17652) [NEW] Added "Add custom emoji" link to emoji picker (#16250) [FIX] Marketplace tiered pricing plan wording (#17644) [FIX] Secret Registration not properly validating Invite Token (#17618) Improve: New PR Template (#16968) Add engine versions for houston with templates (#17403) Use Users.findOneByAppId instead of querying directly (#16480) Remove unnecessary setting redefinition (#17587) Deprecate compatibility cordova setting (#17586)
ggazzo
added a commit
that referenced
this pull request
May 15, 2020
…/new-threads * 'develop' of github.com:RocketChat/Rocket.Chat: Regression: Pressing enter on search reloads the page - admin pages (#17663) [NEW] Admin refactor Second phase (#17551) [IMPROVE] Unused styles (#17554) [FIX] Directory search user placeholder (#17652) [NEW] Added "Add custom emoji" link to emoji picker (#16250) [FIX] Marketplace tiered pricing plan wording (#17644) [FIX] Secret Registration not properly validating Invite Token (#17618) Improve: New PR Template (#16968) Add engine versions for houston with templates (#17403) Use Users.findOneByAppId instead of querying directly (#16480) Remove unnecessary setting redefinition (#17587) Deprecate compatibility cordova setting (#17586)
ggazzo
added a commit
that referenced
this pull request
May 16, 2020
* 'develop' of github.com:RocketChat/Rocket.Chat: (25 commits) [FIX] Not redirecting to `First Channel After Login` on register (#17664) Regression: Pressing enter on search reloads the page - admin pages (#17663) [NEW] Admin refactor Second phase (#17551) [IMPROVE] Unused styles (#17554) [FIX] Directory search user placeholder (#17652) [NEW] Added "Add custom emoji" link to emoji picker (#16250) [FIX] Marketplace tiered pricing plan wording (#17644) [FIX] Secret Registration not properly validating Invite Token (#17618) Improve: New PR Template (#16968) Add engine versions for houston with templates (#17403) Use Users.findOneByAppId instead of querying directly (#16480) Remove unnecessary setting redefinition (#17587) Deprecate compatibility cordova setting (#17586) Hyper.sh went out of business in early 2019 (#17622) [NEW] Add Permissions to deal with Omnichannel visitor past chats history (#17580) [NEW] Add permissions to deal with Omnichannel custom fields (#17567) [FIX] Livechat iframe allow microphone and camera (#9956) [FIX] Do not allow passwords on private channels (#15642) [FIX] Mail Messages > Cannot mail own user. (#17625) [FIX] remove multiple options from dontAskMeAgain (#17514) ...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As @sampaiodiego suggested before, it's always a good practice to move all db operations/querys into models. Also,
imports
are preferred to be specific withclient
orserver
.