remove useless object

This commit is contained in:
array-in-a-matrix 2024-08-06 15:37:44 -04:00
parent 6e9ce0381c
commit 4d4f318715
2 changed files with 5 additions and 5 deletions

View file

@ -30,7 +30,7 @@ proc createDeletionRoutes*(cfg: Cfg) =
discard waitFor purgeUserFiles(H"Authorization")
db.delete(user)
resp Http200, "[{}]\n", "application/json"
resp Http200, "[]\n", "application/json"
#[
request parameters:
@ -44,7 +44,7 @@ proc createDeletionRoutes*(cfg: Cfg) =
db.delete(user)
resp Http200, "[{}]\n", "application/json"
resp Http200, "[]\n", "application/json"
#! endpoint crashes server
#[
@ -68,7 +68,7 @@ proc createDeletionRoutes*(cfg: Cfg) =
dec user.fileCount
db.update(user)
removeFile(file.path)
resp Http200, "[{}]\n", "application/json"
resp Http200, "[]\n", "application/json"
#[
request parameters:
@ -94,4 +94,4 @@ proc createDeletionRoutes*(cfg: Cfg) =
db.update(user)
removeDir(cfg.uploadDir & user.username & "/")
resp Http200, "[{}]\n", "application/json"
resp Http200, "[]\n", "application/json"

View file

@ -50,4 +50,4 @@ proc createUploadRoutes*(cfg: Cfg) =
# write the file from memory
writeFile(filePath, fileData)
resp Http200, "[{}]\n", "application/json"
resp Http200, "[]\n", "application/json"