From d3bd7771d2a3cfbb24084e44083dc70f02b4ba8c Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Tue, 7 Apr 2020 19:13:33 +0200 Subject: [PATCH] remove debug log for post creation --- server/src/db/post.rs | 2 -- 1 file changed, 2 deletions(-) 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) -- 2.44.1