From 13928cf0210477e62debe1b3cc2cd7d5057481e3 Mon Sep 17 00:00:00 2001 From: Akash Shah Date: Fri, 18 Nov 2022 18:29:55 +0530 Subject: [PATCH] ED-448 - Fix. --- module/observations/helper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/observations/helper.js b/module/observations/helper.js index 48bf384a..913438e2 100644 --- a/module/observations/helper.js +++ b/module/observations/helper.js @@ -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,