chore: add missing events

This commit is contained in:
Arman
2024-01-16 11:59:54 +01:00
parent 9c89b79f95
commit 18df1f10ac
2 changed files with 9 additions and 1 deletions
@@ -88,6 +88,7 @@
org.$id,
$changeOrganizationTier.couponCode
);
trackEvent(Submit.CreditRedeem);
}
//Add budget
@@ -56,6 +56,12 @@
);
}
//Add coupon
if ($createOrganization?.couponCode) {
await sdk.forConsole.billing.addCredit(org.$id, $createOrganization.couponCode);
trackEvent(Submit.CreditRedeem);
}
//Add collaborators
if ($createOrganization?.collaborators?.length) {
$createOrganization.collaborators.forEach(async (collaborator) => {
@@ -110,7 +116,8 @@
paymentMethodId: null,
collaborators: [],
billingAddressId: null,
taxId: null
taxId: null,
couponCode: null
};
});