Update index.js

This commit is contained in:
Killer Boss Original 2022-07-08 20:04:15 +02:00 committed by GitHub
parent e223e1ae75
commit 2f21e39656
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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