fix(server): avoid error when other prices added but logic is not released (#6191)

This commit is contained in:
Brooooooklyn
2024-03-22 08:39:11 +00:00
parent 75355867c7
commit aecc523663
6 changed files with 48 additions and 75 deletions

View File

@@ -114,9 +114,6 @@ type Mutation {
changeEmail(email: String!, token: String!): UserType!
changePassword(newPassword: String!, token: String!): UserType!
"""Create a subscription checkout link of stripe"""
checkout(idempotencyKey: String!, recurring: SubscriptionRecurring!): String! @deprecated(reason: "use `createCheckoutSession` instead")
"""Create a subscription checkout link of stripe"""
createCheckoutSession(input: CreateCheckoutSessionInput!): String!
@@ -275,11 +272,11 @@ enum SubscriptionPlan {
}
type SubscriptionPrice {
amount: Int!
amount: Int
currency: String!
plan: SubscriptionPlan!
type: String!
yearlyAmount: Int!
yearlyAmount: Int
}
enum SubscriptionRecurring {