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