From 38d2108af063fac7ff1f96ebb47d19e7b2700f9a Mon Sep 17 00:00:00 2001 From: Killer Boss Original <73131550+killerbossoriginal@users.noreply.github.com> Date: Tue, 5 Jul 2022 16:27:41 +0200 Subject: [PATCH] d --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index e6271dd..66e0c2c 100644 --- a/index.js +++ b/index.js @@ -108,7 +108,7 @@ async function set(request, response) { authenticate(token, response, set) await db.set(element, data) - const res = await db.get(element) + var res = await db.get(element) var res = JSON.parse(res); if(res) { var reply = res; @@ -134,7 +134,7 @@ async function remove(request, response) { authenticate(token, response, set) await db.set(element, data) - const res = await db.delete(element) + var res = await db.delete(element) var res = JSON.parse(res); if(res) { var reply = res