X-Git-Url: http://these/git/?a=blobdiff_plain;f=crates%2Fdb_schema%2Fsrc%2Fimpls%2Fpost_report.rs;h=f9a1eab200af82cbd9d92097034ee9b5cd1ecdae;hb=c9f140742925d6da20103124b49f2b58a35fc2b8;hp=58e2f44b0adb26f1ec07b962ce4c831702f1d357;hpb=4e6409f325bca5b2727b19c24d77ffa2b59109b1;p=lemmy.git diff --git a/crates/db_schema/src/impls/post_report.rs b/crates/db_schema/src/impls/post_report.rs index 58e2f44b..f9a1eab2 100644 --- a/crates/db_schema/src/impls/post_report.rs +++ b/crates/db_schema/src/impls/post_report.rs @@ -14,7 +14,7 @@ impl Reportable for PostReport { /// /// * `conn` - the postgres connection /// * `post_report_form` - the filled CommentReportForm to insert - fn report(conn: &PgConnection, post_report_form: &PostReportForm) -> Result { + fn report(conn: &mut PgConnection, post_report_form: &PostReportForm) -> Result { use crate::schema::post_report::dsl::*; insert_into(post_report) .values(post_report_form) @@ -27,7 +27,7 @@ impl Reportable for PostReport { /// * `report_id` - the id of the report to resolve /// * `by_resolver_id` - the id of the user resolving the report fn resolve( - conn: &PgConnection, + conn: &mut PgConnection, report_id: Self::IdType, by_resolver_id: PersonId, ) -> Result { @@ -47,7 +47,7 @@ impl Reportable for PostReport { /// * `report_id` - the id of the report to unresolve /// * `by_resolver_id` - the id of the user unresolving the report fn unresolve( - conn: &PgConnection, + conn: &mut PgConnection, report_id: Self::IdType, by_resolver_id: PersonId, ) -> Result {