diff --git a/src/api/core/organizations.rs b/src/api/core/organizations.rs index 318c641..d9b903d 100644 --- a/src/api/core/organizations.rs +++ b/src/api/core/organizations.rs @@ -375,11 +375,7 @@ fn get_collection_users(org_id: String, coll_id: String, _headers: AdminHeaders, }) .collect(); - Ok(Json(json!({ - "Data": user_list, - "Object": "list", - "ContinuationToken": null, - }))) + Ok(Json(json!(user_list))) } #[derive(FromForm)] diff --git a/src/db/models/organization.rs b/src/db/models/organization.rs index 0efcb5e..c755a06 100644 --- a/src/db/models/organization.rs +++ b/src/db/models/organization.rs @@ -296,14 +296,8 @@ impl UserOrganization { let user = User::find_by_uuid(&self.user_uuid, conn).unwrap(); json!({ - "OrganizationUserId": self.uuid, - "AccessAll": self.access_all, - "Name": user.name, - "Email": user.email, - "Type": self.type_, - "Status": self.status, - "ReadOnly": read_only, - "Object": "collectionUser", + "Id": self.uuid, + "ReadOnly": read_only }) }