Skip to content

Commit

Permalink
draft-api: Stop updating taxonomy metadata on publish
Browse files Browse the repository at this point in the history
  • Loading branch information
jnatten committed Nov 27, 2024
1 parent f9e972c commit 238e2cb
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 238e2cb

Please sign in to comment.