]> Untitled Git - lemmy.git/commitdiff
remove debug log for post creation
authorFelix Ableitner <me@nutomic.com>
Tue, 7 Apr 2020 17:13:33 +0000 (19:13 +0200)
committerFelix Ableitner <me@nutomic.com>
Tue, 7 Apr 2020 17:13:33 +0000 (19:13 +0200)
server/src/db/post.rs

index bf455b1afa3ddcf3e52094697b987113be5a6e9a..bdd3306117afb1d2774ed4a3aa08622e72524587 100644 (file)
@@ -111,13 +111,11 @@ impl Crud<PostForm> for Post {
 
   fn create(conn: &PgConnection, new_post: &PostForm) -> Result<Self, Error> {
     use crate::schema::post::dsl::*;
-    dbg!(&new_post);
     insert_into(post).values(new_post).get_result::<Self>(conn)
   }
 
   fn update(conn: &PgConnection, post_id: i32, new_post: &PostForm) -> Result<Self, Error> {
     use crate::schema::post::dsl::*;
-    dbg!(&new_post);
     diesel::update(post.find(post_id))
       .set(new_post)
       .get_result::<Self>(conn)