mirror of
https://github.com/glimpse-app/server.git
synced 2025-04-02 10:52:45 -04:00
add missing newlines
This commit is contained in:
parent
78b12d7626
commit
51a36b9435
1 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@ proc createDeletionRoutes*(cfg: Cfg) =
|
|||
delete "/api/v1/userCompletely":
|
||||
var user = newUser()
|
||||
if not db.validToken(user, H"Authorization"):
|
||||
resp Http403, "Invalid token."
|
||||
resp Http403, "Invalid token.\n"
|
||||
|
||||
discard waitFor purgeUserFiles(H"Authorization")
|
||||
db.delete(user)
|
||||
|
@ -40,7 +40,7 @@ proc createDeletionRoutes*(cfg: Cfg) =
|
|||
delete "/api/v1/user":
|
||||
var user = newUser()
|
||||
if not db.validToken(user, H"Authorization"):
|
||||
resp Http403, "Invalid token."
|
||||
resp Http403, "Invalid token.\n"
|
||||
|
||||
db.delete(user)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue