d
This commit is contained in:
parent
517d0173c8
commit
94bebc2f6f
1 changed files with 7 additions and 3 deletions
10
index.js
10
index.js
|
@ -82,9 +82,13 @@ async function searchElement(request, response) {
|
||||||
authenticate(token, response, search)
|
authenticate(token, response, search)
|
||||||
|
|
||||||
var elements = await db.get(word)
|
var elements = await db.get(word)
|
||||||
console.log(elements)
|
var elements = {
|
||||||
var elements = JSON.parse(elements);
|
name: word,
|
||||||
console.log(elements)
|
value: elements
|
||||||
|
}
|
||||||
|
// console.log(elements)
|
||||||
|
// var elements = JSON.parse(elements);
|
||||||
|
// console.log(elements)
|
||||||
|
|
||||||
if(elements) {
|
if(elements) {
|
||||||
var reply = elements
|
var reply = elements
|
||||||
|
|
Loading…
Reference in a new issue