Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] api: Simplify email search logic in create_contact
This commit refines the email handling in the create_contact endpoint by directly searching for the complete email address instead of using a prefix-based search pattern. Previously, the endpoint extracted a prefix from the provided email address and used it to construct a domain for searching contacts. The change to search for the exact email address improves the accuracy of contact searches by ensuring that only contacts with the exact email are considered. This adjustment reduces the likelihood of incorrect matches and streamlines the logic by removing unnecessary regex operations.
- Loading branch information