Merge pull request #1504 from appwrite/chore-campaign-support-all-plan

Allow upgrade if current plan does not match the campaign plan
This commit is contained in:
Arman
2024-11-11 09:35:52 +01:00
committed by GitHub
@@ -108,7 +108,7 @@
);
}
// Upgrade existing org
else if (selectedOrg?.billingPlan === BillingPlan.FREE) {
else if (selectedOrg?.billingPlan !== billingPlan) {
org = await sdk.forConsole.billing.updatePlan(
selectedOrg.$id,
billingPlan,