From 397244ffddbd4cf8b9fd9553431cdb230b2fcee3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Thu, 25 Jan 2024 16:00:07 +0900 Subject: [PATCH] fix --- .../java/one/nem/lacerta/data/impl/LacertaLibraryImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;