File tree 1 file changed +7
-5
lines changed
components/server/ee/src/workspace
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -1596,11 +1596,13 @@ export class GitpodServerEEImpl extends GitpodServerImpl {
1596
1596
{ teamId, chargebeeSubscriptionId } ,
1597
1597
) ;
1598
1598
}
1599
- const subscriptionId = await this . stripeService . findUncancelledSubscriptionByAttributionId (
1600
- AttributionId . render ( { kind : "team" , teamId : teamId } ) ,
1601
- ) ;
1602
- if ( subscriptionId ) {
1603
- await this . stripeService . cancelSubscription ( subscriptionId ) ;
1599
+ if ( this . config . enablePayment ) {
1600
+ const subscriptionId = await this . stripeService . findUncancelledSubscriptionByAttributionId (
1601
+ AttributionId . render ( { kind : "team" , teamId : teamId } ) ,
1602
+ ) ;
1603
+ if ( subscriptionId ) {
1604
+ await this . stripeService . cancelSubscription ( subscriptionId ) ;
1605
+ }
1604
1606
}
1605
1607
}
1606
1608
You can’t perform that action at this time.
0 commit comments