Browse Source
Merge pull request #3659 from BlackDex/fix-org-creation
Fix org creation regresion
pull/3678/head
1.29.0
Mathijs van Veluw
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
2 deletions
-
src/api/core/organizations.rs
|
|
@ -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
|
|
|
@ -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; |
|
|
|