Skip to content

Commit

Permalink
fix(server): only auto apply coupon in pro subscription
Browse files Browse the repository at this point in the history
  • Loading branch information
forehalo committed Apr 3, 2024
1 parent 6fa4b7d commit f1c58cc
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 f1c58cc

Please sign in to comment.