Tighten updateThread fields and add todos
This commit is contained in:
parent
46d6a3b6bb
commit
d9335ee0f0
1 changed files with 5 additions and 1 deletions
|
|
@ -1197,6 +1197,8 @@ routes:
|
|||
resp Http400, $(%exc.data), "application/json"
|
||||
|
||||
post "/updateThread":
|
||||
# TODO: Add some way of keeping track of modifications for historical
|
||||
# purposes
|
||||
createTFD()
|
||||
if not c.loggedIn():
|
||||
let err = PostError(
|
||||
|
|
@ -1211,7 +1213,9 @@ routes:
|
|||
|
||||
let threadId = formData["threadId"].body
|
||||
|
||||
let keys = ["name", "views", "modified", "category", "isLocked", "solution", "isDeleted"]
|
||||
# TODO: might want to add more properties here under a tighter permissions
|
||||
# model
|
||||
let keys = ["name", "category", "solution"]
|
||||
|
||||
# optional parameters
|
||||
var
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue