fix(server): only auto apply coupon in pro subscription (#6452)
This commit is contained in:
1 parent
6fa4b7da54
commit
edef9b2735
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user