From a98478a2edeeeb2a862af67cd6107faf14136cbd Mon Sep 17 00:00:00 2001 From: Killer Boss Original <73131550+killerbossoriginal@users.noreply.github.com> Date: Tue, 5 Jul 2022 01:29:50 +0200 Subject: [PATCH] Update index.js --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 63e1bcf..2758bda 100644 --- a/index.js +++ b/index.js @@ -39,7 +39,7 @@ function alldata(request, response) { app.get('/api/:auth/database/:element/', searchElement); -function searchElement(request, response) { +async function searchElement(request, response) { var token = request.params.auth; authenticate(token)