mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-01 01:29:31 +08:00
chore: cleanup legacy logic (#15072)
This commit is contained in:
@@ -2,7 +2,6 @@ import {
|
||||
SubscriptionPlan,
|
||||
type SubscriptionQuery,
|
||||
SubscriptionRecurring,
|
||||
SubscriptionVariant,
|
||||
} from '@affine/graphql';
|
||||
import {
|
||||
catchErrorInto,
|
||||
@@ -44,12 +43,6 @@ export class Subscription extends Entity {
|
||||
isBeliever$ = this.pro$.map(
|
||||
sub => sub?.recurring === SubscriptionRecurring.Lifetime
|
||||
);
|
||||
isOnetimePro$ = this.pro$.map(
|
||||
sub => sub?.variant === SubscriptionVariant.Onetime
|
||||
);
|
||||
isOnetimeAI$ = this.ai$.map(
|
||||
sub => sub?.variant === SubscriptionVariant.Onetime
|
||||
);
|
||||
|
||||
constructor(
|
||||
private readonly authService: AuthService,
|
||||
|
||||
@@ -23,12 +23,6 @@ export class UserFeature extends Entity {
|
||||
features === null ? null : features?.some(f => f === FeatureType.Admin)
|
||||
);
|
||||
|
||||
isEarlyAccess$ = this.features$.map(features =>
|
||||
features === null
|
||||
? null
|
||||
: features?.some(f => f === FeatureType.EarlyAccess)
|
||||
);
|
||||
|
||||
isRevalidating$ = new LiveData(false);
|
||||
error$ = new LiveData<any | null>(null);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user