From 95fc4ddbec2ec94f14650004fab8f1fcd4d63829 Mon Sep 17 00:00:00 2001 From: Stefan Melmuk Date: Sat, 21 Dec 2024 23:49:14 +0100 Subject: [PATCH] rename to selected_collections --- src/api/core/organizations.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/api/core/organizations.rs b/src/api/core/organizations.rs index e79eec8f31..0646f136bc 100644 --- a/src/api/core/organizations.rs +++ b/src/api/core/organizations.rs @@ -2352,7 +2352,7 @@ struct GroupRequest { #[serde(default)] access_all: bool, external_id: Option, - collections: Vec, + collections: Vec, users: Vec, } @@ -2373,13 +2373,13 @@ impl GroupRequest { #[derive(Deserialize, Serialize)] #[serde(rename_all = "camelCase")] -struct CollectionSelection { +struct SelectedCollection { id: CollectionId, read_only: bool, hide_passwords: bool, } -impl CollectionSelection { +impl SelectedCollection { pub fn to_collection_group(&self, groups_uuid: GroupId) -> CollectionGroup { CollectionGroup::new(self.id.clone(), groups_uuid, self.read_only, self.hide_passwords) } @@ -2462,7 +2462,7 @@ async fn put_group( async fn add_update_group( mut group: Group, - collections: Vec, + collections: Vec, members: Vec, org_id: OrganizationId, headers: &AdminHeaders,