mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-17 10:06:17 +08:00
fix(server): only returns active subscriptions (#6590)
This commit is contained in:
@@ -765,7 +765,9 @@ export class SubscriptionService {
|
||||
);
|
||||
return {
|
||||
price,
|
||||
coupon: !subscribed ? CouponType.ProEarlyAccessOneYearFree : undefined,
|
||||
coupon: canHaveEADiscount
|
||||
? CouponType.ProEarlyAccessOneYearFree
|
||||
: undefined,
|
||||
};
|
||||
} else {
|
||||
const isAIEaUser = await this.features.isEarlyAccessUser(
|
||||
|
||||
Reference in New Issue
Block a user