diff options
author | Vincent Ambo <tazjin@gmail.com> | 2018-04-15T21·30+0200 |
---|---|---|
committer | Vincent Ambo <tazjin@gmail.com> | 2018-04-15T21·30+0200 |
commit | 56d57edfd0df66978ff069651fc4c21dee856b0a (patch) | |
tree | 0f0601aa71d1670d2a25b7e206a926b47af558ec /src/db.rs | |
parent | e130e15b79c0a77c7759ec24e44310eebc013417 (diff) |
feat(handlers): Implement post editing handler
Implements a handler that receives the edit form result and updates the database accordingly if the user identity matches.
Diffstat (limited to 'src/db.rs')
-rw-r--r-- | src/db.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/db.rs b/src/db.rs index 3641bddb5aa4..e7af0fdd4eb8 100644 --- a/src/db.rs +++ b/src/db.rs @@ -90,8 +90,8 @@ impl Handler<GetPost> for DbExecutor { /// Message used to update the content of a post. #[derive(Deserialize)] pub struct UpdatePost { - post_id: i32, - post: String, + pub post_id: i32, + pub post: String, } message!(UpdatePost, Result<Post>); |