diff --git a/data/src/main/java/one/nem/lacerta/data/impl/LacertaLibraryImpl.java b/data/src/main/java/one/nem/lacerta/data/impl/LacertaLibraryImpl.java index 5b54fd93..f072594d 100644 --- a/data/src/main/java/one/nem/lacerta/data/impl/LacertaLibraryImpl.java +++ b/data/src/main/java/one/nem/lacerta/data/impl/LacertaLibraryImpl.java @@ -342,7 +342,14 @@ public class LacertaLibraryImpl implements LacertaLibrary { @Override public CompletableFuture> getCombinedDocumentIdList(String parentId) { - + return CompletableFuture.supplyAsync(() -> { + List toxiDocumentEntities = database.toxiDocumentDao().findByParentId(parentId); + ArrayList documentIdList = new ArrayList<>(); + for (ToxiDocumentEntity toxiDocumentEntity : toxiDocumentEntities) { + documentIdList.add(toxiDocumentEntity.childDocumentId); + } + return documentIdList; + }); } /**