aboutsummaryrefslogtreecommitdiffstats
path: root/src/actions.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions.rs')
-rw-r--r--src/actions.rs14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/actions.rs b/src/actions.rs
index 4dbe4ca..0a5bee4 100644
--- a/src/actions.rs
+++ b/src/actions.rs
@@ -105,9 +105,10 @@ pub fn edit(
username: Option<&str>,
password: Option<&str>,
notes: Option<&str>,
+ history: &[crate::db::HistoryEntry],
) -> Result<(Option<String>, ())> {
with_exchange_refresh_token(access_token, refresh_token, |access_token| {
- edit_once(access_token, id, name, username, password, notes)
+ edit_once(access_token, id, name, username, password, notes, history)
})
}
@@ -118,11 +119,20 @@ fn edit_once(
username: Option<&str>,
password: Option<&str>,
notes: Option<&str>,
+ history: &[crate::db::HistoryEntry],
) -> Result<()> {
let config = crate::config::Config::load()?;
let client =
crate::api::Client::new(&config.base_url(), &config.identity_url());
- client.edit(access_token, id, name, username, password, notes)?;
+ client.edit(
+ access_token,
+ id,
+ name,
+ username,
+ password,
+ notes,
+ history,
+ )?;
Ok(())
}