diff --git a/src/app/browser/window/tab/item/identity/gemini.rs b/src/app/browser/window/tab/item/identity/gemini.rs index ea40a92a..bf8bdf5f 100644 --- a/src/app/browser/window/tab/item/identity/gemini.rs +++ b/src/app/browser/window/tab/item/identity/gemini.rs @@ -142,7 +142,7 @@ impl Gemini { .identity .gemini .auth - .add(profile_identity_gemini_id, auth_url.as_str()) + .apply(profile_identity_gemini_id, auth_url.as_str()) .unwrap(); } // Remove all identity auths for `auth_uri` diff --git a/src/profile/identity/gemini/auth.rs b/src/profile/identity/gemini/auth.rs index 9e53342e..b24240b4 100644 --- a/src/profile/identity/gemini/auth.rs +++ b/src/profile/identity/gemini/auth.rs @@ -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 add(&self, profile_identity_gemini_id: i64, url: &str) -> Result { + pub fn apply(&self, profile_identity_gemini_id: i64, url: &str) -> Result { // Cleanup records match `url` (unauthorize) self.remove(url)?;