Skip to content

Commit efd8555

Browse files
authored
Hotfix v2.1.3 (#198)
2 parents e421306 + 154b203 commit efd8555

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

src/services/admin/mentor.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ export const getAllMentors = async ({
182182

183183
const [mentors, count] = await mentorRepository.findAndCount({
184184
where: status ? { state: status } : {},
185-
relations: ['profile', 'category'],
185+
relations: ['profile', 'category', 'country'],
186186
skip: (pageNumber - 1) * pageSize,
187187
take: pageSize
188188
})
@@ -257,7 +257,7 @@ export const getMentor = async (
257257

258258
const mentor = await mentorRepository.findOne({
259259
where: { uuid: mentorId },
260-
relations: ['profile', 'category']
260+
relations: ['profile', 'category', 'country']
261261
})
262262

263263
if (!mentor) {

src/services/mentor.service.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,13 @@ export const getMentor = async (
174174
const mentorRepository = dataSource.getRepository(Mentor)
175175
const mentor = await mentorRepository.findOne({
176176
where: { uuid: mentorId },
177-
relations: ['profile', 'category', 'mentees', 'mentees.profile'],
177+
relations: [
178+
'profile',
179+
'category',
180+
'mentees',
181+
'mentees.profile',
182+
'country'
183+
],
178184
select: ['application', 'uuid', 'availability']
179185
})
180186

@@ -256,7 +262,13 @@ export const getAllMentors = async ({
256262
state: MentorApplicationStatus.APPROVED
257263
}
258264
: { state: MentorApplicationStatus.APPROVED },
259-
relations: ['profile', 'category', 'mentees', 'mentees.profile'],
265+
relations: [
266+
'profile',
267+
'category',
268+
'mentees',
269+
'mentees.profile',
270+
'country'
271+
],
260272
select: ['application', 'uuid', 'availability'],
261273
order: {
262274
availability: 'DESC'

0 commit comments

Comments
 (0)