rename method

This commit is contained in:
yggverse 2024-11-20 11:41:20 +02:00
parent ab003209b0
commit 5128324f8e
2 changed files with 3 additions and 3 deletions

View File

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

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 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) => {