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/api.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/api.rs') diff --git a/src/api.rs b/src/api.rs index 3eef840..73b970f 100644 --- a/src/api.rs +++ b/src/api.rs @@ -307,6 +307,8 @@ struct CiphersPostReq { struct CiphersPutReq { #[serde(rename = "type")] ty: u32, // XXX what are the valid types? + #[serde(rename = "organizationId")] + organization_id: Option, name: String, notes: Option, login: Option, @@ -594,6 +596,7 @@ impl Client { &self, access_token: &str, id: &str, + org_id: Option<&str>, name: &str, data: &crate::db::EntryData, notes: Option<&str>, @@ -601,6 +604,7 @@ impl Client { ) -> Result<()> { let mut req = CiphersPutReq { ty: 1, + organization_id: org_id.map(std::string::ToString::to_string), name: name.to_string(), notes: notes.map(std::string::ToString::to_string), login: None, -- cgit v1.2.3-54-g00ecf