From 2f21e39656081523ed14df7206325c1bc71a224e Mon Sep 17 00:00:00 2001 From: Killer Boss Original <73131550+killerbossoriginal@users.noreply.github.com> Date: Fri, 8 Jul 2022 20:04:15 +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 1356119..d8d308b 100644 --- a/index.js +++ b/index.js @@ -103,7 +103,7 @@ async function searchElement(request, response) { // Set a db variable -app.put('/api/:auth/database/:element/set/:data', (request, response) => { +app.put('/api/:auth/database/:element/set/:data', async (request, response) => { var token = request.params.auth; var element = request.params.element; var data = request.params.data;