mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 17:20:08 +00:00
rename method
This commit is contained in:
parent
ab003209b0
commit
5128324f8e
@ -85,12 +85,12 @@ impl Gemini {
|
||||
.unwrap(), // @TODO
|
||||
};
|
||||
|
||||
// Apply identity for given `auth_uri`
|
||||
// Activate identity for given `auth_uri`
|
||||
profile
|
||||
.identity
|
||||
.gemini
|
||||
.auth
|
||||
.apply(profile_identity_gemini_id, auth_url.as_str())
|
||||
.activate(profile_identity_gemini_id, auth_url.as_str())
|
||||
.unwrap(); //@TODO handle errors
|
||||
|
||||
// Reload page
|
||||
|
@ -41,7 +41,7 @@ impl Auth {
|
||||
/// * deactivate active auth by remove previous records from `Self` database
|
||||
/// * reindex `Self` memory index on success
|
||||
/// * return last insert `profile_identity_gemini_auth_id` on success
|
||||
pub fn apply(&self, profile_identity_gemini_id: i64, url: &str) -> Result<i64, Error> {
|
||||
pub fn activate(&self, profile_identity_gemini_id: i64, url: &str) -> Result<i64, Error> {
|
||||
// Get all records match request
|
||||
match self.database.records(Some(url)) {
|
||||
Ok(records) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user