This commit is contained in:
Killer Boss Original 2022-07-08 12:43:07 +02:00 committed by GitHub
parent 517d0173c8
commit 94bebc2f6f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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