diff options
author | Jesse Luehrs <doy@tozt.net> | 2020-05-03 20:55:48 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2020-05-03 20:55:48 -0400 |
commit | 77d005513f9a547129fee7c8760eff0bac30bd3c (patch) | |
tree | ac1b4dae47105ecf650027d1fe6c2ae88680f704 /src/actions.rs | |
parent | dcca2c702999997ebdc2ae7acd1228edf7333014 (diff) | |
download | rbw-77d005513f9a547129fee7c8760eff0bac30bd3c.tar.gz rbw-77d005513f9a547129fee7c8760eff0bac30bd3c.zip |
fix editing organization entries
Diffstat (limited to 'src/actions.rs')
-rw-r--r-- | src/actions.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/actions.rs b/src/actions.rs index 736f43e..4f37e5b 100644 --- a/src/actions.rs +++ b/src/actions.rs @@ -149,19 +149,21 @@ pub fn edit( access_token: &str, refresh_token: &str, id: &str, + org_id: Option<&str>, name: &str, data: &crate::db::EntryData, 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, data, notes, history) + edit_once(access_token, id, org_id, name, data, notes, history) }) } fn edit_once( access_token: &str, id: &str, + org_id: Option<&str>, name: &str, data: &crate::db::EntryData, notes: Option<&str>, @@ -170,7 +172,7 @@ fn edit_once( let config = crate::config::Config::load()?; let client = crate::api::Client::new(&config.base_url(), &config.identity_url()); - client.edit(access_token, id, name, data, notes, history)?; + client.edit(access_token, id, org_id, name, data, notes, history)?; Ok(()) } |