From 77d005513f9a547129fee7c8760eff0bac30bd3c Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 3 May 2020 20:55:48 -0400 Subject: fix editing organization entries --- src/actions.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/actions.rs') 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, ())> { 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(()) } -- cgit v1.2.3-54-g00ecf