Skip to content

Commit de8f584

Browse files
authored
Merge pull request #424 from ELEVATE-Project/profile-update-changes
added invalid response to homefeed api
2 parents c62dbc8 + d3039a8 commit de8f584

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/services/mentees.js

+8
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,14 @@ module.exports = class MenteesHelper {
374374
'external_session_visibility',
375375
'organization_id',
376376
])
377+
378+
if (!mentorExtension || !menteeExtension) {
379+
throw common.failureResponse({
380+
statusCode: httpStatusCode.unauthorized,
381+
message: 'USER_NOT_FOUND',
382+
responseCode: 'CLIENT_ERROR',
383+
})
384+
}
377385
const organizationName = mentorExtension
378386
? (await userRequests.fetchDefaultOrgDetails(mentorExtension.organization_id))?.data?.result?.name
379387
: ''

0 commit comments

Comments
 (0)