This commit is contained in:
Killer Boss Original 2022-07-05 16:27:41 +02:00 committed by GitHub
parent 15b4687537
commit 38d2108af0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -108,7 +108,7 @@ async function set(request, response) {
authenticate(token, response, set) authenticate(token, response, set)
await db.set(element, data) await db.set(element, data)
const res = await db.get(element) var res = await db.get(element)
var res = JSON.parse(res); var res = JSON.parse(res);
if(res) { if(res) {
var reply = res; var reply = res;
@ -134,7 +134,7 @@ async function remove(request, response) {
authenticate(token, response, set) authenticate(token, response, set)
await db.set(element, data) await db.set(element, data)
const res = await db.delete(element) var res = await db.delete(element)
var res = JSON.parse(res); var res = JSON.parse(res);
if(res) { if(res) {
var reply = res var reply = res