test
This commit is contained in:
parent
da3fc3c105
commit
da2da30493
1 changed files with 2 additions and 2 deletions
4
index.js
4
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 = {
|
||||
|
|
Loading…
Reference in a new issue