Skip to content

Commit

Permalink
Merge pull request #3659 from BlackDex/fix-org-creation
Browse files Browse the repository at this point in the history
Fix org creation regresion
  • Loading branch information
BlackDex authored Jul 6, 2023
2 parents 4826ddc + 08f37b9 commit 1c7338c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/api/core/organizations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ struct OrgData {
CollectionName: String,
Key: String,
Name: String,
ExternalId: String,
Keys: Option<OrgKeyData>,
#[serde(rename = "PlanType")]
_PlanType: NumberOrString, // Ignored, always use the same plan
Expand Down Expand Up @@ -170,7 +169,7 @@ async fn create_organization(headers: Headers, data: JsonUpcase<OrgData>, mut co

let org = Organization::new(data.Name, data.BillingEmail, private_key, public_key);
let mut user_org = UserOrganization::new(headers.user.uuid, org.uuid.clone());
let collection = Collection::new(org.uuid.clone(), data.CollectionName, Some(data.ExternalId));
let collection = Collection::new(org.uuid.clone(), data.CollectionName, None);

user_org.akey = data.Key;
user_org.access_all = true;
Expand Down

0 comments on commit 1c7338c

Please sign in to comment.