Skip to content

Commit edef9b2

Browse files
authored
fix(server): only auto apply coupon in pro subscription (#6452)
1 parent 6fa4b7d commit edef9b2

File tree

1 file changed

+1
-1
lines changed
  • packages/backend/server/src/plugins/payment

1 file changed

+1
-1
lines changed

packages/backend/server/src/plugins/payment/service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export class SubscriptionService {
116116
discount ??= {};
117117
discount.promotion_code = code;
118118
}
119-
} else {
119+
} else if (plan === SubscriptionPlan.Pro) {
120120
const coupon = await this.getAvailableCoupon(
121121
user,
122122
CouponType.EarlyAccess

0 commit comments

Comments
 (0)