From: Felix Ableitner Date: Tue, 7 Apr 2020 17:13:33 +0000 (+0200) Subject: remove debug log for post creation X-Git-Url: http://these/git/%24%7BgetStaticDir%28%29%7D/styles/static/%7BjoinLemmyUrl%7D?a=commitdiff_plain;h=d3bd7771d2a3cfbb24084e44083dc70f02b4ba8c;p=lemmy.git remove debug log for post creation --- diff --git a/server/src/db/post.rs b/server/src/db/post.rs index bf455b1a..bdd33061 100644 --- a/server/src/db/post.rs +++ b/server/src/db/post.rs @@ -111,13 +111,11 @@ impl Crud for Post { fn create(conn: &PgConnection, new_post: &PostForm) -> Result { use crate::schema::post::dsl::*; - dbg!(&new_post); insert_into(post).values(new_post).get_result::(conn) } fn update(conn: &PgConnection, post_id: i32, new_post: &PostForm) -> Result { use crate::schema::post::dsl::*; - dbg!(&new_post); diesel::update(post.find(post_id)) .set(new_post) .get_result::(conn)