mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-25 02:13:00 +08: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 ??= {};
|
||||||
discount.promotion_code = code;
|
discount.promotion_code = code;
|
||||||
}
|
}
|
||||||
} else {
|
} else if (plan === SubscriptionPlan.Pro) {
|
||||||
const coupon = await this.getAvailableCoupon(
|
const coupon = await this.getAvailableCoupon(
|
||||||
user,
|
user,
|
||||||
CouponType.EarlyAccess
|
CouponType.EarlyAccess
|
||||||
|
|||||||
Reference in New Issue
Block a user