From da2da304938e0927c40bab9d38e62f5127a541ff Mon Sep 17 00:00:00 2001 From: Killer Boss Original <73131550+killerbossoriginal@users.noreply.github.com> Date: Tue, 5 Jul 2022 14:58:49 +0200 Subject: [PATCH] test --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 = {