From eab4edc24679a21ec63395c68c6808b5671ac265 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 bf455b1af..bdd330611 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)