Skip to content

Commit

Permalink
Merge pull request #113 from project-sunbird/release-5.0.0-hotfix
Browse files Browse the repository at this point in the history
ED-448 - Fix.
  • Loading branch information
aks30 authored Nov 18, 2022
2 parents 5ef2647 + 13928cf commit 9332ac8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/observations/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -2112,7 +2112,7 @@ module.exports = class ObservationsHelper {
//check solution entity type is exist in allowed roles
if ( !allowedEntityTypes.length > 0 ||
!(allowedEntityTypes.includes(solutionDocument[0].entityType)) ||
!(Object.keys(bodyData).includes(solutionDocument[0].entityType)))
!(Object.keys(bodyData).includes(allowedEntityTypes[0])))
{
throw {
status: httpStatusCode.bad_request.status,
Expand Down

0 comments on commit 9332ac8

Please sign in to comment.