rename method

This commit is contained in:
yggverse 2024-11-23 11:51:33 +02:00
parent 8a4e979d48
commit 43083bd96f
2 changed files with 2 additions and 2 deletions

View File

@ -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`

View File

@ -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<i64, Error> {
pub fn apply(&self, profile_identity_gemini_id: i64, url: &str) -> Result<i64, Error> {
// Cleanup records match `url` (unauthorize)
self.remove(url)?;