mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-24 05:48:59 +08:00
fix(core): free cloud and ai onetime payment adaptation (#8558)
close AF-1515, AF-1516
This commit is contained in:
@@ -45,7 +45,10 @@ export class Subscription extends Entity {
|
||||
isBeliever$ = this.pro$.map(
|
||||
sub => sub?.recurring === SubscriptionRecurring.Lifetime
|
||||
);
|
||||
isOnetime$ = this.pro$.map(
|
||||
isOnetimePro$ = this.pro$.map(
|
||||
sub => sub?.variant === SubscriptionVariant.Onetime
|
||||
);
|
||||
isOnetimeAI$ = this.ai$.map(
|
||||
sub => sub?.variant === SubscriptionVariant.Onetime
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user