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;