diff --git a/src/routes/admin/mentor/mentor.route.test.ts b/src/routes/admin/mentor/mentor.route.test.ts index 8d06406c..fa33755f 100644 --- a/src/routes/admin/mentor/mentor.route.test.ts +++ b/src/routes/admin/mentor/mentor.route.test.ts @@ -191,7 +191,6 @@ describe('Admin mentor routes', () => { mentorDetails.forEach((mentor: Mentor) => { expect(mentor).toHaveProperty('profile') - expect(mentor).toHaveProperty('application') expect(mentor).toHaveProperty('category') }) }) diff --git a/src/services/admin/mentor.service.ts b/src/services/admin/mentor.service.ts index c598936f..4afdc017 100644 --- a/src/services/admin/mentor.service.ts +++ b/src/services/admin/mentor.service.ts @@ -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 })