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

Added profile search feature #32

Merged
merged 2 commits into from
Mar 11, 2022
Merged

Added profile search feature #32

merged 2 commits into from
Mar 11, 2022

Conversation

thaneesh-babu
Copy link
Member

Issue #28

Allows for searching by name (first, middle and last) and phone number using regex.

@thaneesh-babu thaneesh-babu linked an issue Mar 11, 2022 that may be closed by this pull request
})
);

profileRoutes.route("/").post(
profileRoutes.route("/:userId").post(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need this change here? We should already be getting their userId

{ phoneNumber: { $regex: re } },
],
}).count();
console.log(matchCount);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove this console.log?

@ayush-goyal
Copy link
Member

Looks really good!

@ayush-goyal ayush-goyal merged commit 0049602 into main Mar 11, 2022
@ayush-goyal ayush-goyal deleted the profile-search branch March 11, 2022 19:20
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.

Create profile search
2 participants