Skip to content

Commit bc28cbf

Browse files
authored
Merge pull request #88 from vercel/vteo-uninstall-integration
added FORCE_FINALIZE_INSTALLATION
2 parents 66ae75b + 043f3b2 commit bc28cbf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/partner/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,11 @@ export async function uninstallInstallation(
125125

126126
// Installation is finalized immediately if it's on a free plan.
127127
const billingPlan = billingPlanMap.get(installation.billingPlanId);
128-
return { finalized: billingPlan?.paymentMethodRequired === false };
128+
return {
129+
finalized:
130+
billingPlan?.paymentMethodRequired === false ||
131+
process.env.FORCE_FINALIZE_INSTALLATION === "true",
132+
};
129133
}
130134

131135
export async function listInstallations(): Promise<string[]> {

0 commit comments

Comments
 (0)