diff --git a/vcs/src/main/java/one/nem/lacerta/vcs/LacertaVcs.java b/vcs/src/main/java/one/nem/lacerta/vcs/LacertaVcs.java index 4874bd7b..664c45e1 100644 --- a/vcs/src/main/java/one/nem/lacerta/vcs/LacertaVcs.java +++ b/vcs/src/main/java/one/nem/lacerta/vcs/LacertaVcs.java @@ -18,7 +18,7 @@ public interface LacertaVcs { public void generateRevisionAtCurrent(String message); - public CompletableFuture> getRevisionHistoryByDocumentId(String documentId); + public CompletableFuture> getRevisionHistory(); // debug diff --git a/vcs/src/main/java/one/nem/lacerta/vcs/impl/LacertaVcsImpl.java b/vcs/src/main/java/one/nem/lacerta/vcs/impl/LacertaVcsImpl.java index 347c138a..e04c7e49 100644 --- a/vcs/src/main/java/one/nem/lacerta/vcs/impl/LacertaVcsImpl.java +++ b/vcs/src/main/java/one/nem/lacerta/vcs/impl/LacertaVcsImpl.java @@ -125,12 +125,12 @@ public class LacertaVcsImpl implements LacertaVcs { } @Override - public CompletableFuture> getRevisionHistoryByDocumentId(String documentId) { + public CompletableFuture> getRevisionHistory() { return CompletableFuture.supplyAsync(() -> { logger.debug(TAG, "getRevisionHistoryByDocumentId"); ArrayList vcsRevModels = new ArrayList<>(); - List vcsRevEntities = database.vcsRevDao().findByDocumentId(documentId); + List vcsRevEntities = database.vcsRevDao().findByDocumentId(this.documentId); vcsRevEntities.forEach(vcsRevEntity -> { VcsRevModel vcsRevModel = new VcsRevModel(); vcsRevModel.setDocumentId(vcsRevEntity.documentId);