From 6c50675938d31efee4e48e7f448f98ff0b7ec5d9 Mon Sep 17 00:00:00 2001 From: r-ca Date: Tue, 23 Jan 2024 01:29:30 +0900 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vcs/src/main/java/one/nem/lacerta/vcs/LacertaVcs.java | 2 +- .../main/java/one/nem/lacerta/vcs/impl/LacertaVcsImpl.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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);