mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
chore(server): remove useless free subscription enum (#6634)
This commit is contained in:
@@ -56,7 +56,10 @@ export class UserSubscriptionType implements Partial<UserSubscription> {
|
||||
@Field({ name: 'id' })
|
||||
stripeSubscriptionId!: string;
|
||||
|
||||
@Field(() => SubscriptionPlan)
|
||||
@Field(() => SubscriptionPlan, {
|
||||
description:
|
||||
"The 'Free' plan just exists to be a placeholder and for the type convenience of frontend.\nThere won't actually be a subscription with plan 'Free'",
|
||||
})
|
||||
plan!: SubscriptionPlan;
|
||||
|
||||
@Field(() => SubscriptionRecurring)
|
||||
|
||||
@@ -443,6 +443,11 @@ type UserSubscription {
|
||||
end: DateTime!
|
||||
id: String!
|
||||
nextBillAt: DateTime
|
||||
|
||||
"""
|
||||
The 'Free' plan just exists to be a placeholder and for the type convenience of frontend.
|
||||
There won't actually be a subscription with plan 'Free'
|
||||
"""
|
||||
plan: SubscriptionPlan!
|
||||
recurring: SubscriptionRecurring!
|
||||
start: DateTime!
|
||||
|
||||
Reference in New Issue
Block a user