Skip to content

Commit

Permalink
Merge pull request #154 from ccims/bugfix/multiple_save
Browse files Browse the repository at this point in the history
fix multiple save in gropius backend
  • Loading branch information
nk-coding authored Dec 13, 2024
2 parents fcf8d51 + 344c1da commit ae0a095
Show file tree
Hide file tree
Showing 2 changed files with 120 additions and 80 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class ComponentService(
val updateContext = NodeBatchUpdateContext()
input.versions.ifPresent { inputs ->
savedComponent.versions() += inputs.map {
componentVersionService.createComponentVersion(component, it, updateContext)
componentVersionService.createComponentVersion(savedComponent, it, updateContext)
}
}
return updateContext.save(savedComponent, nodeRepository)
Expand Down
Loading

0 comments on commit ae0a095

Please sign in to comment.