diff options
author | Vincent Ambo <tazjin@gmail.com> | 2018-04-08T18·01+0200 |
---|---|---|
committer | Vincent Ambo <tazjin@gmail.com> | 2018-04-08T18·01+0200 |
commit | 094b1e07225313c930c26dbeb73755f34a537ce4 (patch) | |
tree | 10dd453d62684b13185e5f332cff5d34b336b0d7 /src/models.rs | |
parent | fc7ca2900d656974891c7e5ccfd532ab93aade94 (diff) |
feat(handlers): Add thread submission handler
Diffstat (limited to 'src/models.rs')
-rw-r--r-- | src/models.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/models.rs b/src/models.rs index fc67c260a448..d85a54e03090 100644 --- a/src/models.rs +++ b/src/models.rs @@ -18,7 +18,7 @@ pub struct Post { pub posted: DateTime<Utc>, } -#[derive(Insertable)] +#[derive(Deserialize, Insertable)] #[table_name="threads"] pub struct NewThread { pub title: String, |