diff --git a/index.js b/index.js index c3c1d07..08b134d 100644 --- a/index.js +++ b/index.js @@ -130,7 +130,7 @@ async function remove(request, response) { var data = request.params.data; set = 'remove '+element - authenticate(token, set) + authenticate(token, response, set) await db.set(element, response, data) const res = await db.delete(element)