mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-18 18:46:19 +08:00
feat(core): add self host team plan (#9569)
This commit is contained in:
@@ -196,7 +196,7 @@ class CreateCheckoutSessionInput implements z.infer<typeof CheckoutParams> {
|
||||
idempotencyKey?: string;
|
||||
|
||||
@Field(() => GraphQLJSONObject, { nullable: true })
|
||||
args!: { workspaceId?: string; quantity?: number };
|
||||
args!: { workspaceId?: string; quantity?: number } | null;
|
||||
}
|
||||
|
||||
@Resolver(() => SubscriptionType)
|
||||
@@ -278,7 +278,7 @@ export class SubscriptionResolver {
|
||||
if (input.plan === SubscriptionPlan.SelfHostedTeam) {
|
||||
session = await this.service.checkout(input, {
|
||||
plan: input.plan as any,
|
||||
quantity: input.args.quantity ?? 10,
|
||||
quantity: input.args?.quantity ?? 10,
|
||||
});
|
||||
} else {
|
||||
if (!user) {
|
||||
|
||||
Reference in New Issue
Block a user