mirror of
https://github.com/glimpse-app/server.git
synced 2025-04-02 10:52:45 -04:00
remove useless object
This commit is contained in:
parent
6e9ce0381c
commit
4d4f318715
2 changed files with 5 additions and 5 deletions
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue