pub fn cleanup_registered_user(&self, token: &str) -> Result<usize> {
        use crate::schema::register_users::dsl;

        diesel::delete(dsl::register_users.filter(dsl::token.eq(token)))
            .execute(self.db)
            .map_err(From::from)
    }
/// Clean up registered user by token
Clean up registered user by token
Clean up registered user by token
pub fn cleanup_registered_user(&self, token: &str) -> Result<usize> {
        use crate::schema::register_users::dsl;
        diesel::delete(dsl::register_users.filter(dsl::token.eq(token)))
            .execute(self.db)
            .map_err(From::from)
    }
pub fn cleanup_registered_user ( & self , token : & str ) -> Result < usize > { use crate :: schema :: register_users :: dsl ; diesel :: delete ( dsl :: register_users . filter ( dsl :: token . eq ( token ) ) ) . execute ( self . db ) . map_err ( From :: from ) }
Clean up registered user by token
Clean up registered user by token
&self
token
&str
&self
token
&str