From 08f37b99355c2ea04c7d6a9eaf1138450fcc97a2 Mon Sep 17 00:00:00 2001 From: BlackDex Date: Thu, 6 Jul 2023 10:14:04 +0200 Subject: [PATCH] Fix org creation regresion A previous PR added a field which isn't there on the initial creation of an org. This PR fixes that. --- src/api/core/organizations.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/api/core/organizations.rs b/src/api/core/organizations.rs index cd5455d2..a1814c60 100644 --- a/src/api/core/organizations.rs +++ b/src/api/core/organizations.rs @@ -106,7 +106,6 @@ struct OrgData { CollectionName: String, Key: String, Name: String, - ExternalId: String, Keys: Option, #[serde(rename = "PlanType")] _PlanType: NumberOrString, // Ignored, always use the same plan @@ -170,7 +169,7 @@ async fn create_organization(headers: Headers, data: JsonUpcase, 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;