From 6be6da59ae5e35253555f79961e8e90cfb13ea7a Mon Sep 17 00:00:00 2001 From: Killer Boss Original <73131550+killerbossoriginal@users.noreply.github.com> Date: Tue, 5 Jul 2022 16:17:08 +0200 Subject: [PATCH] b --- index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 08b134d..6661ff9 100644 --- a/index.js +++ b/index.js @@ -105,9 +105,9 @@ async function set(request, response) { var data = request.params.data; set = 'set '+element+' to '+data - authenticate(token, set) + authenticate(token, response, set) - await db.set(element, response, data) + await db.set(element, data) const res = await db.get(element) if(res) { var reply = res; @@ -132,7 +132,7 @@ async function remove(request, response) { set = 'remove '+element authenticate(token, response, set) - await db.set(element, response, data) + await db.set(element, data) const res = await db.delete(element) if(res) { var reply = res;