Skip to content

Commit

Permalink
feat: Remove updateJobTerminologyServiceSettings call from updateTerm…
Browse files Browse the repository at this point in the history
…inologySystem.
  • Loading branch information
Okanmercan99 committed Jan 10, 2025
1 parent 2c8aad7 commit 4ccaa96
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ class TerminologySystemService(terminologySystemRepository: ITerminologySystemRe
*/
def updateTerminologySystem(id: String, terminologySystem: TerminologySystem): Future[TerminologySystem] = {
// Update TerminologySystem first, then update Jobs Terminology service setting fields
terminologySystemRepository.updateTerminologySystem(id, terminologySystem).flatMap { terminologySystem =>
updateJobTerminologyServiceSettings(id, Some(terminologySystem)).map(_ => terminologySystem)
}
terminologySystemRepository.updateTerminologySystem(id, terminologySystem)
}

/**
Expand Down

0 comments on commit 4ccaa96

Please sign in to comment.