pub fn unfavorite_question(question_uuid: QuestionUuid, user_uuid: UserUuid, conn: &PgConnection) -> BackendResult<()> {
        use crate::schema::junction_favorite_questions_users as favorites;

        diesel::delete(favorites::table)
            .filter(favorites::question_uuid.eq(question_uuid.0))
            .filter(favorites::user_uuid.eq(user_uuid.0))
            .execute(conn)
            .map_err(handle_err::<Question>)?;
        Ok(())
    }
/// Unmarks a question as a favorite for a given user.
Unmarks a question as a favorite for a given user.
Unmarks a question as a favorite for a given user .
pub fn unfavorite_question(question_uuid: QuestionUuid, user_uuid: UserUuid, conn: &PgConnection) -> BackendResult<()> {
        use crate::schema::junction_favorite_questions_users as favorites;
        diesel::delete(favorites::table)
            .filter(favorites::question_uuid.eq(question_uuid.0))
            .filter(favorites::user_uuid.eq(user_uuid.0))
            .execute(conn)
            .map_err(handle_err::<Question>)?;
        Ok(())
    }
pub fn unfavorite_question ( question_uuid : QuestionUuid , user_uuid : UserUuid , conn : & PgConnection ) -> BackendResult < ( ) > { use crate :: schema :: junction_favorite_questions_users as favorites ; diesel :: delete ( favorites :: table ) . filter ( favorites :: question_uuid . eq ( question_uuid . 0 ) ) . filter ( favorites :: user_uuid . eq ( user_uuid . 0 ) ) . execute ( conn ) . map_err ( handle_err :: < Question > ) ? ; Ok ( ( ) ) }
Unmarks a question as a favorite for a given user.
Unmarks a question as a favorite for a given user .
question_uuid
QuestionUuid
user_uuid
UserUuid
conn
&PgConnection
question_uuid
QuestionUuid
user_uuid
UserUuid
conn
&PgConnection