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