Skip to content

Commit

Permalink
Update the public mentor API (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
anjula-sack authored Jul 9, 2024
1 parent a271f72 commit 5b8b39d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/services/mentor.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,9 @@ export const getAllMentors = async (
where: categoryId
? {
category: { uuid: categoryId },
state: ApplicationStatus.APPROVED,
availability: true
state: ApplicationStatus.APPROVED
}
: { state: ApplicationStatus.APPROVED, availability: true },
: { state: ApplicationStatus.APPROVED },
relations: ['profile', 'category'],
select: ['application', 'uuid', 'availability']
})
Expand Down

0 comments on commit 5b8b39d

Please sign in to comment.