+
+ pub fn remove_avatar_and_banner(conn: &PgConnection, person_id: PersonId) -> Result<Self, Error> {
+ diesel::update(person.find(person_id))
+ .set((
+ avatar.eq::<Option<String>>(None),
+ banner.eq::<Option<String>>(None),
+ ))
+ .get_result::<Self>(conn)
+ }