Skip to content

Commit

Permalink
fix(server): only auto apply coupon in pro subscription (#6452)
Browse files Browse the repository at this point in the history
  • Loading branch information
forehalo authored Apr 3, 2024
1 parent 6fa4b7d commit edef9b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/backend/server/src/plugins/payment/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export class SubscriptionService {
discount ??= {};
discount.promotion_code = code;
}
} else {
} else if (plan === SubscriptionPlan.Pro) {
const coupon = await this.getAvailableCoupon(
user,
CouponType.EarlyAccess
Expand Down

0 comments on commit edef9b2

Please sign in to comment.