Skip to content

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

@Hadyosman1
Copy link
Author

Hi team 👋

This PR fixes an issue in the isAvailable method that caused emails to be incorrectly marked as unavailable. The fix was approved by @nicobytes

Can someone with write access review and merge this PR? Thanks in advance! 🙏

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 }
2 participants