Skip to content

Commit

Permalink
Merge pull request #96 from shikshalokam/master
Browse files Browse the repository at this point in the history
added userProfile if the project is not a improvement suggestion
  • Loading branch information
aks30 authored Jun 20, 2022
2 parents 668ca2b + 4c739e0 commit acff5c6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions module/userProjects/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -1248,6 +1248,18 @@ module.exports = class UserProjectsHelper {
addReportInfoToSolution = true;
}
}

} else {
//Fetch user profile information by calling sunbird's user read api.

let userProfileData = await userProfileService.profile(userToken, userId);
if ( userProfileData.success &&
userProfileData.data &&
userProfileData.data.response
) {
projectCreation.data.userProfile = userProfileData.data.response;
addReportInfoToSolution = true;
}
}

projectCreation.data.userRoleInformation = userRoleInformation;
Expand Down

0 comments on commit acff5c6

Please sign in to comment.