Merge pull request #1776 from appwrite/fix-credits-not-updated

Fix: credits not applied
This commit is contained in:
Steven Nguyen authored and GitHub committed 2025-04-02 15:23:26 -07:00
commit 4e5ebdaac2
1 file changed
+2 -1
@@ -148,9 +148,10 @@
collaborators
);
}
// Existing pro org
// Existing pro org, apply credits
else {
org = selectedOrg;
await sdk.forConsole.billing.addCredit(org.$id, couponData.code);
}
if (!isOrganization(org) && org.status === 402) {