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/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/%22https:/nerdica.net/static/%24%7BappleTouchIcon%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)