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"
|
resp Http400, $(%exc.data), "application/json"
|
||||||
|
|
||||||
post "/updateThread":
|
post "/updateThread":
|
||||||
|
# TODO: Add some way of keeping track of modifications for historical
|
||||||
|
# purposes
|
||||||
createTFD()
|
createTFD()
|
||||||
if not c.loggedIn():
|
if not c.loggedIn():
|
||||||
let err = PostError(
|
let err = PostError(
|
||||||
|
|
@ -1211,7 +1213,9 @@ routes:
|
||||||
|
|
||||||
let threadId = formData["threadId"].body
|
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
|
# optional parameters
|
||||||
var
|
var
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue