This commit is contained in:
Killer Boss Original 2022-07-05 16:17:08 +02:00 committed by GitHub
parent 9b734496cb
commit 6be6da59ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -105,9 +105,9 @@ async function set(request, response) {
var data = request.params.data; var data = request.params.data;
set = 'set '+element+' to '+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) const res = await db.get(element)
if(res) { if(res) {
var reply = res; var reply = res;
@ -132,7 +132,7 @@ async function remove(request, response) {
set = 'remove '+element set = 'remove '+element
authenticate(token, response, set) authenticate(token, response, set)
await db.set(element, response, data) await db.set(element, data)
const res = await db.delete(element) const res = await db.delete(element)
if(res) { if(res) {
var reply = res; var reply = res;