From 94bebc2f6f006f51f8a9c92b18fd43e643ae9225 Mon Sep 17 00:00:00 2001 From: Killer Boss Original <73131550+killerbossoriginal@users.noreply.github.com> Date: Fri, 8 Jul 2022 12:43:07 +0200 Subject: [PATCH] d --- index.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 8e8ab62..283467d 100644 --- a/index.js +++ b/index.js @@ -82,9 +82,13 @@ async function searchElement(request, response) { authenticate(token, response, search) var elements = await db.get(word) - console.log(elements) - var elements = JSON.parse(elements); - console.log(elements) + var elements = { + name: word, + value: elements + } + // console.log(elements) + // var elements = JSON.parse(elements); + // console.log(elements) if(elements) { var reply = elements