mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-22 16:03:15 +00:00
fix
This commit is contained in:
parent
0dad6d30d4
commit
397244ffdd
|
@ -271,7 +271,7 @@ public class LacertaLibraryImpl implements LacertaLibrary {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public CompletableFuture<Void> addTagToDocument(String documentId, String tagId) {
|
public CompletableFuture<Void> addTagToDocument(String documentId, String tagId) {
|
||||||
CompletableFuture.supplyAsync(() -> {
|
return CompletableFuture.supplyAsync(() -> {
|
||||||
ToxiDocumentTagEntity toxiDocumentTagEntity = new ToxiDocumentTagEntity();
|
ToxiDocumentTagEntity toxiDocumentTagEntity = new ToxiDocumentTagEntity();
|
||||||
toxiDocumentTagEntity.documentId = documentId;
|
toxiDocumentTagEntity.documentId = documentId;
|
||||||
toxiDocumentTagEntity.tagId = tagId;
|
toxiDocumentTagEntity.tagId = tagId;
|
||||||
|
@ -283,7 +283,7 @@ public class LacertaLibraryImpl implements LacertaLibrary {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public CompletableFuture<Void> removeTagFromDocument(String documentId, String tagId) {
|
public CompletableFuture<Void> removeTagFromDocument(String documentId, String tagId) {
|
||||||
CompletableFuture.supplyAsync(() -> {
|
return CompletableFuture.supplyAsync(() -> {
|
||||||
database.toxiDocumentTagDao().deleteByDocumentIdAndTagId(documentId, tagId);
|
database.toxiDocumentTagDao().deleteByDocumentIdAndTagId(documentId, tagId);
|
||||||
logger.debug("LacertaLibraryImpl", "Database Query: Deleted ToxiDocumentTagEntity");
|
logger.debug("LacertaLibraryImpl", "Database Query: Deleted ToxiDocumentTagEntity");
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user