This commit is contained in:
r-ca 2024-01-23 01:29:30 +09:00
parent 791084b737
commit 6c50675938
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9
2 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ public interface LacertaVcs {
public void generateRevisionAtCurrent(String message);
public CompletableFuture<ArrayList<VcsRevModel>> getRevisionHistoryByDocumentId(String documentId);
public CompletableFuture<ArrayList<VcsRevModel>> getRevisionHistory();
// debug

View File

@ -125,12 +125,12 @@ public class LacertaVcsImpl implements LacertaVcs {
}
@Override
public CompletableFuture<ArrayList<VcsRevModel>> getRevisionHistoryByDocumentId(String documentId) {
public CompletableFuture<ArrayList<VcsRevModel>> getRevisionHistory() {
return CompletableFuture.supplyAsync(() -> {
logger.debug(TAG, "getRevisionHistoryByDocumentId");
ArrayList<VcsRevModel> vcsRevModels = new ArrayList<>();
List<VcsRevEntity> vcsRevEntities = database.vcsRevDao().findByDocumentId(documentId);
List<VcsRevEntity> vcsRevEntities = database.vcsRevDao().findByDocumentId(this.documentId);
vcsRevEntities.forEach(vcsRevEntity -> {
VcsRevModel vcsRevModel = new VcsRevModel();
vcsRevModel.setDocumentId(vcsRevEntity.documentId);