diff options
author | Tin Lai <oscar@tinyiu.com> | 2023-09-21 12:59:57 +1000 |
---|---|---|
committer | Tin Lai <oscar@tinyiu.com> | 2023-09-21 12:59:57 +1000 |
commit | 13bea3e874df10e825b7b9b90ce734adc1a71d7d (patch) | |
tree | 4e21eb06319ea92529b49170914206d532248c38 /src/api.rs | |
parent | bb1791d14e64ad83fb57116a24eb913a4946afed (diff) | |
download | rbw-13bea3e874df10e825b7b9b90ce734adc1a71d7d.tar.gz rbw-13bea3e874df10e825b7b9b90ce734adc1a71d7d.zip |
implements ability to edit notes
Signed-off-by: Tin Lai <oscar@tinyiu.com>
Diffstat (limited to 'src/api.rs')
-rw-r--r-- | src/api.rs | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1041,7 +1041,12 @@ impl Client { history: &[crate::db::HistoryEntry], ) -> Result<()> { let mut req = CiphersPutReq { - ty: 1, + ty: match data { + crate::db::EntryData::Login {..} => 1, + crate::db::EntryData::SecureNote {..} => 2, + crate::db::EntryData::Card {..} => 3, + crate::db::EntryData::Identity {..} => 4, + }, folder_id: folder_uuid.map(std::string::ToString::to_string), organization_id: org_id.map(std::string::ToString::to_string), name: name.to_string(), |