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

Commit 230198b

Browse files
committed
Fix unreleasing
1 parent e414179 commit 230198b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/humanbrainproject/knowledgegraph/commons/propertyGraph/arango/control/ArangoNativeRepository.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ public Integer getCurrentRevision(ArangoDocumentReference documentReference) {
8484
if (document != null) {
8585
Object rev = document.get(ArangoVocabulary.NEXUS_RELATIVE_URL_WITH_REV);
8686
if (rev != null) {
87-
return Integer.parseInt(rev.toString());
87+
String revStr = rev.toString().substring(rev.toString().indexOf("?rev=") + 5);
88+
return Integer.parseInt(revStr.trim());
8889
}
8990
}
9091
return null;

0 commit comments

Comments
 (0)