Skip to content

Commit

Permalink
Issue #000 fix: including BCMSF while creating and updating textbook
Browse files Browse the repository at this point in the history
  • Loading branch information
venkateshwarans committed Mar 25, 2020
1 parent 5c93668 commit cf6cc75
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/helpers/updateHierarchy.helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
}
}
},
Expand Down Expand Up @@ -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)
};
}

Expand All @@ -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)
}
}

Expand Down Expand Up @@ -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' && {
Expand Down

0 comments on commit cf6cc75

Please sign in to comment.