Browse Source

Fix collection update from native client

For some strange reason the native clients send `CollectionIds` instead of `collectionIds` for updating the collection.
Added an alias to allow this.

Fixes an issue reported via Matrix.

Signed-off-by: BlackDex <black.dex@gmail.com>
pull/4937/head
BlackDex 7 months ago
parent
commit
9fb198bf35
No known key found for this signature in database GPG Key ID: 58C80A2AA6C765E1
  1. 1
      src/api/core/ciphers.rs

1
src/api/core/ciphers.rs

@ -703,6 +703,7 @@ async fn put_cipher_partial(
#[derive(Deserialize)]
#[serde(rename_all = "camelCase")]
struct CollectionsAdminData {
#[serde(alias = "CollectionIds")]
collection_ids: Vec<String>,
}

Loading…
Cancel
Save