Skip to content

Fix email availability check in isAvailable method #48

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Hadyosman1
Copy link

Description

Fixed email availability check in isAvailable method to correctly compare with null instead of undefined.

Changes:

  • Updated isAvailable method to check findByEmail(dto.email) === null instead of undefined.
  • This fixes an issue where emails that were not registered before were incorrectly marked as unavailable (false).

Fixes #21

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.

is-available route never responds with { "isAvailable": true }
1 participant