about summary refs log tree commit diff
path: root/src/db.rs
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2018-04-15T21·30+0200
committerVincent Ambo <tazjin@gmail.com>2018-04-15T21·30+0200
commit56d57edfd0df66978ff069651fc4c21dee856b0a (patch)
tree0f0601aa71d1670d2a25b7e206a926b47af558ec /src/db.rs
parente130e15b79c0a77c7759ec24e44310eebc013417 (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.rs4
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>);