Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
fix: org cancel only happen in root org mode
=90701be9fb5b
diff --git a/backend/src/services/org/org-service.ts b/backend/src/services/org/org-service.tsindex 90fbabb200..7575933506 100644--- a/backend/src/services/org/org-service.ts+++ b/backend/src/services/org/org-service.ts@@ -820,9 +820,10 @@ export const orgServiceFactory = ({};});- // After commit: the org is gone, so stop it billing. Never throws, so a License Server outage can't- // fail a deletion that already succeeded, and it stays out of the transaction.- await licenseService.cancelOrgSubscription(orgId);+ // if root org null = this is a root org then cancel the subscription.+ if (!response.organization.rootOrgId) {+ await licenseService.cancelOrgSubscription(orgId);+ }return response;};