This commit is contained in:
ろむねこ 2024-01-25 16:00:07 +09:00
parent 0dad6d30d4
commit 397244ffdd
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168

View File

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