chore(server): remove useless free subscription enum (#6634)

This commit is contained in:
forehalo
2024-04-19 13:34:58 +00:00
parent 657a5250ad
commit 098e717688
10 changed files with 53 additions and 83 deletions

View File

@@ -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)

View File

@@ -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!