Closed sathudeva7 closed 11 months ago
The purpose of this PR is to fix #43
This issue involves implementing an API to Get all mentor emails. The endpoint should allow Admin to make a GET request to {{baseUrl}}/api/admin/mentor/emails?status=ACCEPTED.
const allMentors: Mentor[] = await mentorRepository.find({ where: status ? { state: status } : {}, select: ['profile'], relations: ['profile', 'category'] }) const emails = allMentors.map((mentor) => mentor?.profile?.primary_email)
Purpose
The purpose of this PR is to fix #43
Goals
This issue involves implementing an API to Get all mentor emails. The endpoint should allow Admin to make a GET request to {{baseUrl}}/api/admin/mentor/emails?status=ACCEPTED.
Approach
Screenshots
Checklist
Related PRs
## Test environment ## Learning