From cf6cc75999d13aaca804d90899dc27900fea4e65 Mon Sep 17 00:00:00 2001 From: Venkateshwaran Selvaraj Date: Wed, 25 Mar 2020 18:13:28 +0530 Subject: [PATCH] Issue #000 fix: including BCMSF while creating and updating textbook --- src/helpers/updateHierarchy.helper.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/helpers/updateHierarchy.helper.js b/src/helpers/updateHierarchy.helper.js index e05ddfad..e9f37bc4 100644 --- a/src/helpers/updateHierarchy.helper.js +++ b/src/helpers/updateHierarchy.helper.js @@ -82,7 +82,7 @@ class HierarchyService { data: { request: { content: { - ..._.omit(collection.result.content, ['children', 'identifier', 'status', 'reservedDialcodes', 'dialcodes', 'license', 'framework', 'subject', 'medium', 'gradeLevel', 'board', 'sYS_INTERNAL_LAST_UPDATED_ON', 'contentCredits', 'consumerId', 'osId', 'qrCodeProcessId', 'idealScreenSize', 'contentDisposition', 'os', 'idealScreenDensity', 'depth',]) + ..._.omit(collection.result.content, ['children', 'identifier', 'status', 'reservedDialcodes', 'dialcodes', 'license', 'sYS_INTERNAL_LAST_UPDATED_ON', 'contentCredits', 'consumerId', 'osId', 'qrCodeProcessId', 'idealScreenSize', 'contentDisposition', 'os', 'idealScreenDensity', 'depth']) } } }, @@ -136,8 +136,7 @@ class HierarchyService { console.log(data.result.content.identifier) return { nodesModified: instance.getFlatNodesModified(response.content, additionalMetaData), - hierarchy: instance.getFlatHierarchyObj(response.content), - 'lastUpdatedBy': '95e4942d-cbe8-477d-aebd-ad8e6de4bfc8' + hierarchy: instance.getFlatHierarchyObj(response.content) }; } @@ -153,8 +152,7 @@ class HierarchyService { } return { nodesModified: instance.getFlatNodesModified(response.content, additionalMetaData), - hierarchy: instance.getFlatHierarchyObj(response.content, additionalMetaData), - 'lastUpdatedBy': '95e4942d-cbe8-477d-aebd-ad8e6de4bfc8' + hierarchy: instance.getFlatHierarchyObj(response.content, additionalMetaData) } } @@ -196,7 +194,7 @@ class HierarchyService { 'root': (data.contentType === 'TextBook') ? true : false, 'metadata': { ...(data.contentType === 'TextBook' && { - ..._.omit(data, ['children', 'identifier', 'framework', 'subject', 'medium', 'gradeLevel', 'board']), + ..._.omit(data, ['children', 'identifier']), 'closedProgram': [] }), ...(data.contentType === 'TextBookUnit' && {