Skip to content

Commit

Permalink
Removed category relation
Browse files Browse the repository at this point in the history
  • Loading branch information
Krishnadeva committed Oct 10, 2023
1 parent d8c8de5 commit 52d7831
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/admin/mentor.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export const findAllMentorEmails = async (
const allMentors: Mentor[] = await mentorRepository.find({
where: status ? { state: status } : {},
select: ['profile'],
relations: ['profile', 'category']
relations: ['profile']
})

const emails = allMentors.map((mentor) => mentor?.profile?.primary_email)
Expand Down

0 comments on commit 52d7831

Please sign in to comment.