Skip to content

Commit

Permalink
fix: RegistryIntegragation: when add descriptor fails, nothing is add…
Browse files Browse the repository at this point in the history
…ed to repo
  • Loading branch information
mateusmolina-iese committed Oct 25, 2024
1 parent 5a90fac commit 8311636
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ public AssetAdministrationShell getAas(String shellId) throws ElementDoesNotExis

@Override
public void createAas(AssetAdministrationShell shell) throws CollidingIdentifierException {
decorated.createAas(shell);

integrateAasWithRegistry(shell, aasRepositoryRegistryLink.getAasRepositoryBaseURLs());

decorated.createAas(shell);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ public void updateSubmodel(String submodelId, Submodel submodel) throws ElementD

@Override
public void createSubmodel(Submodel submodel) throws CollidingIdentifierException {
decorated.createSubmodel(submodel);

integrateSubmodelWithRegistry(submodel, submodelRepositoryRegistryLink.getSubmodelRepositoryBaseURLs());

decorated.createSubmodel(submodel);
}

@Override
Expand Down

0 comments on commit 8311636

Please sign in to comment.