Skip to content

Commit

Permalink
Merge pull request #183 from ankitpws/release-5.1.0
Browse files Browse the repository at this point in the history
added long term fix for release-5.1.0
  • Loading branch information
aks30 authored Dec 19, 2023
2 parents 84aa82e + 7d71ef1 commit 81ba8f9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
3 changes: 2 additions & 1 deletion generics/constants/api-responses.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,5 +134,6 @@ module.exports = {
"CERTIFICATE_GENERATION_FAILED" : "Certificate generation failed",
"NOT_ELIGIBLE_FOR_CERTIFICATE" : "Project is not eligible for certificate",
"ISSUER_KID_NOT_FOUND" : "Failed to fetch certificate issuer kid",
"PROJECT_SUBMITTED_FOR_REISSUE" : "Submitted for project certificate reIssue"
"PROJECT_SUBMITTED_FOR_REISSUE" : "Submitted for project certificate reIssue",
"FAILED_TO_START_RESOURCE": "There was an error in starting/joining. Please try again after some time."
};
14 changes: 12 additions & 2 deletions module/userProjects/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -1273,7 +1273,12 @@ module.exports = class UserProjectsHelper {
) {
projectCreation.data.userProfile = userProfile.data.response;
addReportInfoToSolution = true;
}
} else {
throw {
message: CONSTANTS.apiResponses.FAILED_TO_START_RESOURCE,
status: HTTP_STATUS_CODE["failed_dependency"].status,
};
}
}

} else {
Expand All @@ -1286,7 +1291,12 @@ module.exports = class UserProjectsHelper {
) {
projectCreation.data.userProfile = userProfileData.data.response;
addReportInfoToSolution = true;
}
} else {
throw {
message: CONSTANTS.apiResponses.FAILED_TO_START_RESOURCE,
status: HTTP_STATUS_CODE["failed_dependency"].status,
};
}
}

projectCreation.data.userRoleInformation = userRoleInformation;
Expand Down

0 comments on commit 81ba8f9

Please sign in to comment.