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 b6b4aa8e..88ef000f 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 @@ -271,7 +271,7 @@ public class LacertaLibraryImpl implements LacertaLibrary { @Override public CompletableFuture addTagToDocument(String documentId, String tagId) { - CompletableFuture.supplyAsync(() -> { + return CompletableFuture.supplyAsync(() -> { ToxiDocumentTagEntity toxiDocumentTagEntity = new ToxiDocumentTagEntity(); toxiDocumentTagEntity.documentId = documentId; toxiDocumentTagEntity.tagId = tagId; @@ -283,7 +283,7 @@ public class LacertaLibraryImpl implements LacertaLibrary { @Override public CompletableFuture removeTagFromDocument(String documentId, String tagId) { - CompletableFuture.supplyAsync(() -> { + return CompletableFuture.supplyAsync(() -> { database.toxiDocumentTagDao().deleteByDocumentIdAndTagId(documentId, tagId); logger.debug("LacertaLibraryImpl", "Database Query: Deleted ToxiDocumentTagEntity"); return null;