mirror of
https://github.com/glimpse-app/server.git
synced 2025-04-02 10:52:45 -04:00
added missing variable, fixes #28
This commit is contained in:
parent
f9c9d0571e
commit
d2b9c5f1d7
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ proc createDownloadRoutes*() =
|
|||
|
||||
var file = newFile()
|
||||
try:
|
||||
db.select(file, """"File".name = $1 AND "File".owner = $2""", H"Name")
|
||||
db.select(file, """"File".name = $1 AND "File".owner = $2""", H"Name", user)
|
||||
except NotFoundError:
|
||||
resp Http404, "File does not exist.\n"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue