diff --git a/index.js b/index.js index 471cb32..45c7238 100644 --- a/index.js +++ b/index.js @@ -57,8 +57,8 @@ async function searchElement(request, response) { var elements = await db.get(word) - if(elements[word]) { - var reply = elements[word]; + if(elements) { + var reply = elements; } else { var reply = {