Skip to content

Commit

Permalink
Hotfix v2.1.3 (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
akshika47 authored Jan 22, 2025
2 parents e421306 + 154b203 commit efd8555
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/services/admin/mentor.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export const getAllMentors = async ({

const [mentors, count] = await mentorRepository.findAndCount({
where: status ? { state: status } : {},
relations: ['profile', 'category'],
relations: ['profile', 'category', 'country'],
skip: (pageNumber - 1) * pageSize,
take: pageSize
})
Expand Down Expand Up @@ -257,7 +257,7 @@ export const getMentor = async (

const mentor = await mentorRepository.findOne({
where: { uuid: mentorId },
relations: ['profile', 'category']
relations: ['profile', 'category', 'country']
})

if (!mentor) {
Expand Down
16 changes: 14 additions & 2 deletions src/services/mentor.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,13 @@ export const getMentor = async (
const mentorRepository = dataSource.getRepository(Mentor)
const mentor = await mentorRepository.findOne({
where: { uuid: mentorId },
relations: ['profile', 'category', 'mentees', 'mentees.profile'],
relations: [
'profile',
'category',
'mentees',
'mentees.profile',
'country'
],
select: ['application', 'uuid', 'availability']
})

Expand Down Expand Up @@ -256,7 +262,13 @@ export const getAllMentors = async ({
state: MentorApplicationStatus.APPROVED
}
: { state: MentorApplicationStatus.APPROVED },
relations: ['profile', 'category', 'mentees', 'mentees.profile'],
relations: [
'profile',
'category',
'mentees',
'mentees.profile',
'country'
],
select: ['application', 'uuid', 'availability'],
order: {
availability: 'DESC'
Expand Down

0 comments on commit efd8555

Please # to comment.