Skip to content

Commit

Permalink
Stop updating taxonomy metadata on publish
Browse files Browse the repository at this point in the history
  • Loading branch information
jnatten committed Nov 26, 2024
1 parent f9e972c commit c678a8d
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,10 @@ trait StateTransitionRules {
val h5pPaths = converterService.getEmbeddedH5PPaths(article)
h5pApiClient.publishH5Ps(h5pPaths, user): Unit

val taxonomyT = taxonomyApiClient.updateTaxonomyIfExists(id, article, user)
val taxMetadataT = taxonomyApiClient.updateTaxonomyMetadataIfExists(id, visible = true, user)
val taxonomyT = taxonomyApiClient.updateTaxonomyIfExists(id, article, user)
val articleUdpT =
articleApiClient.updateArticle(id, article, externalIds, isImported, useSoftValidation, user)
val failures = Seq(taxonomyT, taxMetadataT, articleUdpT).collectFirst { case Failure(ex) =>
val failures = Seq(taxonomyT, articleUdpT).collectFirst { case Failure(ex) =>
Failure(ex)
}
failures.getOrElse(articleUdpT)
Expand Down

0 comments on commit c678a8d

Please sign in to comment.