diff --git a/languagetool-server/src/main/java/org/languagetool/server/ApiV2.java b/languagetool-server/src/main/java/org/languagetool/server/ApiV2.java index f120fda6a487..904acebff118 100644 --- a/languagetool-server/src/main/java/org/languagetool/server/ApiV2.java +++ b/languagetool-server/src/main/java/org/languagetool/server/ApiV2.java @@ -243,13 +243,20 @@ private void handleWordDeleteRequest(HttpExchange httpExchange, Map words = Arrays.asList(parameters.get("words").split("\\s+")); - deleted = db.deleteWordBatch(words, limits.getPremiumUid(),parameters.get("dict")); + deleted = db.deleteWordBatch(words, limits.getPremiumUid(),dict); writeResponse("deleted", deleted, httpExchange); } else { - deleted = db.deleteWord(parameters.get("word"), limits.getPremiumUid(), parameters.get("dict")); + deleted = db.deleteWord(parameters.get("word"), limits.getPremiumUid(), dict); writeResponse("deleted", deleted, httpExchange); } }