fn remove_downvote(user_uuid: UserUuid, post_uuid: PostUuid, conn: &PgConnection) -> BackendResult<()> {
        use crate::schema::post_downvotes;

        let target = post_downvotes::table
            .filter(post_downvotes::user_uuid.eq(user_uuid.0))
            .filter(post_downvotes::post_uuid.eq(post_uuid.0));
        diesel::delete(target)
            .execute(conn)
            .map_err(handle_err::<Post>)
            .map(|_| ())
    }
/// Removes a downvote from a post.
Removes a downvote from a post.
Removes a downvote from a post .
fn remove_downvote(user_uuid: UserUuid, post_uuid: PostUuid, conn: &PgConnection) -> BackendResult<()> {
        use crate::schema::post_downvotes;
        let target = post_downvotes::table
            .filter(post_downvotes::user_uuid.eq(user_uuid.0))
            .filter(post_downvotes::post_uuid.eq(post_uuid.0));
        diesel::delete(target)
            .execute(conn)
            .map_err(handle_err::<Post>)
            .map(|_| ())
    }
fn remove_downvote ( user_uuid : UserUuid , post_uuid : PostUuid , conn : & PgConnection ) -> BackendResult < ( ) > { use crate :: schema :: post_downvotes ; let target = post_downvotes :: table . filter ( post_downvotes :: user_uuid . eq ( user_uuid . 0 ) ) . filter ( post_downvotes :: post_uuid . eq ( post_uuid . 0 ) ) ; diesel :: delete ( target ) . execute ( conn ) . map_err ( handle_err :: < Post > ) . map ( | _ | ( ) ) }
Removes a downvote from a post.
Removes a downvote from a post .
user_uuid
UserUuid
post_uuid
PostUuid
conn
&PgConnection
user_uuid
UserUuid
post_uuid
PostUuid
conn
&PgConnection