From 5b8b39d4ce2a44d7e375089737a9ef6a86c70d93 Mon Sep 17 00:00:00 2001 From: Anjula Shanaka Date: Tue, 9 Jul 2024 21:28:41 +0530 Subject: [PATCH] Update the public mentor API (#125) --- src/services/mentor.service.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/services/mentor.service.ts b/src/services/mentor.service.ts index 3bbf4845..7358df65 100644 --- a/src/services/mentor.service.ts +++ b/src/services/mentor.service.ts @@ -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'] })