Skip to content

Commit

Permalink
Merge pull request #41 from Informatievlaanderen/SDTT-264-oslo-conver…
Browse files Browse the repository at this point in the history
…ter-uml-ea-does-not-set-scope-correctly

Fix addScope function
  • Loading branch information
ddvlanck authored Feb 8, 2024
2 parents de0e841 + b956603 commit d05b57f
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,14 +190,15 @@ export abstract class ConverterHandler<T extends EaObject> {
`[ConverterHandler]: Unable to find the URI for object with path ${object.path}. Setting scope to "Undefined".`,
);
scope = Scope.Undefined;
return;
}

if (uri?.toString().startsWith(packageBaseUri)) {
scope = Scope.InPackage;
if (uri.toString().startsWith(this.config.publicationEnvironment)) {
scope = Scope.InPublicationEnvironment;
}

if (uri?.toString().startsWith(this.config.publicationEnvironment)) {
scope = Scope.InPublicationEnvironment;
if (uri.toString().startsWith(packageBaseUri)) {
scope = Scope.InPackage;
}

quads.push(
Expand Down

0 comments on commit d05b57f

Please sign in to comment.