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
8a4e979d48
commit
43083bd96f
@ -142,7 +142,7 @@ impl Gemini {
|
|||||||
.identity
|
.identity
|
||||||
.gemini
|
.gemini
|
||||||
.auth
|
.auth
|
||||||
.add(profile_identity_gemini_id, auth_url.as_str())
|
.apply(profile_identity_gemini_id, auth_url.as_str())
|
||||||
.unwrap();
|
.unwrap();
|
||||||
}
|
}
|
||||||
// Remove all identity auths for `auth_uri`
|
// Remove all identity auths for `auth_uri`
|
||||||
|
@ -41,7 +41,7 @@ impl Auth {
|
|||||||
/// * deactivate active auth by remove previous records from `Self` database
|
/// * deactivate active auth by remove previous records from `Self` database
|
||||||
/// * reindex `Self` memory index on success
|
/// * reindex `Self` memory index on success
|
||||||
/// * return last insert `profile_identity_gemini_auth_id` 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)
|
// Cleanup records match `url` (unauthorize)
|
||||||
self.remove(url)?;
|
self.remove(url)?;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user