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 for method "getUserByUids" with mongodb database #40

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

ghost
Copy link

@ghost ghost commented Sep 18, 2020

Hi,
i'm using mongodb as Database, with lucid-mongo.

Unfortunately when Person uses the internal method getUserByUids() (in the methods verify() and forgotPassword()) fails because tries to search users using the method userQuery.orWhere() that doesn't exist in mongo.

To fix this would be nice to check if this method exists and fallback to the method findBy() of mongo.

Persona js 2020-09-18 15-13-59

Thank you for your great work.

Best regards,
Florian

rhwilr and others added 8 commits June 23, 2018 00:06
@coveralls
Copy link

coveralls commented Sep 18, 2020

Pull Request Test Coverage Report for Build 48

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 93.514%

Totals Coverage Status
Change from base Build 24: 0.0%
Covered Lines: 136
Relevant Lines: 141

💛 - Coveralls

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.

None yet

6 participants