Skip to content
This repository was archived by the owner on Apr 25, 2023. It is now read-only.

Commit f4a27c3

Browse files
authored
Merge pull request #45 from HumanBrainProject/develop
fix unreleasing
2 parents 3955ae6 + e207c29 commit f4a27c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/humanbrainproject/knowledgegraph/releasing/control/ReleaseControl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ public NexusInstanceReference unrelease(NexusInstanceReference instanceReference
218218
//Find release instance
219219
Set<NexusInstanceReference> releases = nativeRepository.findOriginalIdsWithLinkTo(ArangoDocumentReference.fromNexusInstance(fromUrl), ArangoCollectionReference.fromFieldName(HBPVocabulary.RELEASE_INSTANCE));
220220
for (NexusInstanceReference nexusInstanceReference : releases) {
221-
Integer currentRevision = nativeRepository.getCurrentRevision(ArangoDocumentReference.fromNexusInstance(fromUrl));
221+
Integer currentRevision = nativeRepository.getCurrentRevision(ArangoDocumentReference.fromNexusInstance(nexusInstanceReference));
222222
nexusInstanceReference.setRevision(currentRevision);
223223
instanceManipulationController.deprecateInstanceByNexusId(nexusInstanceReference);
224224
}

0 commit comments

Comments
 (0)