pub fn clear_access_token_by_admin_id(&self, admin_id: ID) -> Result<()> {
        use crate::schema::admin_access_tokens::{self, dsl};
        diesel::delete(dsl::admin_access_tokens.filter(dsl::admin_id.eq(admin_id))).execute(self.db)?;
        Ok(())
    }
/// Clear admin's access tokens by admin id
Clear admin's access tokens by admin id
Clear admin ' s access tokens by admin id
pub fn clear_access_token_by_admin_id(&self, admin_id: ID) -> Result<()> {
        use crate::schema::admin_access_tokens::{self, dsl};
        diesel::delete(dsl::admin_access_tokens.filter(dsl::admin_id.eq(admin_id))).execute(self.db)?;
        Ok(())
    }
pub fn clear_access_token_by_admin_id ( & self , admin_id : ID ) -> Result < ( ) > { use crate :: schema :: admin_access_tokens :: { self , dsl } ; diesel :: delete ( dsl :: admin_access_tokens . filter ( dsl :: admin_id . eq ( admin_id ) ) ) . execute ( self . db ) ? ; Ok ( ( ) ) }
Clear admin's access tokens by admin id
Clear admin ' s access tokens by admin id
&self
admin_id
ID
&self
admin_id
ID