Allow deleting account with trial

This commit is contained in:
Owen
2026-05-01 15:01:48 -07:00
parent 3dfd7e8a43
commit 53e096f7cb
2 changed files with 12 additions and 8 deletions

View File

@@ -104,8 +104,9 @@ export async function deleteMyAccount(
(r) => r.isBillingOrg && r.isOwner
)?.orgId;
if (primaryOrgId) {
const { tier, active } = await getOrgTierData(primaryOrgId);
if (active && tier) {
const { tier, active, isTrial } =
await getOrgTierData(primaryOrgId);
if (active && tier && !isTrial) {
return next(
createHttpError(
HttpCode.BAD_REQUEST,