mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
fix(server): only auto apply coupon in pro subscription (#6452)
This commit is contained in:
@@ -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