X-Git-Url: http://these/git/?a=blobdiff_plain;f=crates%2Fdb_schema%2Fsrc%2Fimpls%2Fcommunity_block.rs;h=49a86173476e1376d5167c0d9f53821c130bffd6;hb=c9f140742925d6da20103124b49f2b58a35fc2b8;hp=bbad2f122437fe7936117a77ac5c955a1dc831b8;hpb=4e6409f325bca5b2727b19c24d77ffa2b59109b1;p=lemmy.git diff --git a/crates/db_schema/src/impls/community_block.rs b/crates/db_schema/src/impls/community_block.rs index bbad2f12..49a86173 100644 --- a/crates/db_schema/src/impls/community_block.rs +++ b/crates/db_schema/src/impls/community_block.rs @@ -6,7 +6,7 @@ use diesel::{dsl::*, result::Error, *}; impl Blockable for CommunityBlock { type Form = CommunityBlockForm; - fn block(conn: &PgConnection, community_block_form: &Self::Form) -> Result { + fn block(conn: &mut PgConnection, community_block_form: &Self::Form) -> Result { use crate::schema::community_block::dsl::*; insert_into(community_block) .values(community_block_form) @@ -15,7 +15,7 @@ impl Blockable for CommunityBlock { .set(community_block_form) .get_result::(conn) } - fn unblock(conn: &PgConnection, community_block_form: &Self::Form) -> Result { + fn unblock(conn: &mut PgConnection, community_block_form: &Self::Form) -> Result { use crate::schema::community_block::dsl::*; diesel::delete( community_block