Unverified Commit 671df257 authored by vinukumar-vs's avatar vinukumar-vs Committed by GitHub
Browse files

Issue #SB-31006 merge: Merge pull request #608 from Jayaprakash8887/SB-31006

Issue #SB-31006 fix: Content linking to collection is failing.
Showing with 1 addition and 3 deletions
+1 -3
......@@ -106,9 +106,7 @@ trait ContentAutoCreator extends ContentCollectionUpdater {
case _ => logger.info("ContentAutoCreator :: process :: Event Skipped for operations (create, upload, publish) for: " + event.identifier + " | Content Stage : " + contentStage)
}
val updatedContentMetadata = neo4JUtil.getNodeProperties(internalId)
if(updatedContentMetadata.get("status").asInstanceOf[String].equalsIgnoreCase("Live") &&
event.collection.nonEmpty && (linkToCollection || contentStage.equalsIgnoreCase("na"))) {
if(event.collection.nonEmpty && (linkToCollection || contentStage.equalsIgnoreCase("na"))) {
linkCollection(internalId, event.collection)(config, httpUtil)
} else logger.info("ContentAutoCreator :: process :: Textbook Linking Skipped because received empty collection/textbookInfo for : " + event.identifier)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment