Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Krishnadeva committed Dec 3, 2023
1 parent 419d5da commit eb08bf3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
1 change: 0 additions & 1 deletion src/routes/admin/mentor/mentor.route.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ describe('Admin mentor routes', () => {

mentorDetails.forEach((mentor: Mentor) => {
expect(mentor).toHaveProperty('profile')
expect(mentor).toHaveProperty('application')
expect(mentor).toHaveProperty('category')
})
})
Expand Down
10 changes: 0 additions & 10 deletions src/services/admin/mentor.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,16 +126,6 @@ export const searchMentorsByCategory = async (
.createQueryBuilder('mentor')
.innerJoinAndSelect('mentor.category', 'category')
.leftJoinAndSelect('mentor.profile', 'profile')
.select([
'mentor.uuid',
'category.category',
'mentor.application',
'profile.contact_email',
'profile.first_name',
'profile.last_name',
'profile.image_url',
'profile.linkedin_url'
])
.where('category.category ILIKE :name', {
name: categoryQuery
})
Expand Down

0 comments on commit eb08bf3

Please sign in to comment.