mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
fix(server): should auto apply ea price for users (#9082)
This commit is contained in:
@@ -66,7 +66,7 @@ export abstract class SubscriptionManager {
|
||||
): KnownStripePrice[] | Promise<KnownStripePrice[]>;
|
||||
|
||||
abstract checkout(
|
||||
price: KnownStripePrice,
|
||||
lookupKey: LookupKey,
|
||||
params: z.infer<typeof CheckoutParams>,
|
||||
args: any
|
||||
): Promise<Stripe.Checkout.Session>;
|
||||
@@ -206,9 +206,7 @@ export abstract class SubscriptionManager {
|
||||
return customer;
|
||||
}
|
||||
|
||||
protected async getPrice(
|
||||
lookupKey: LookupKey
|
||||
): Promise<KnownStripePrice | null> {
|
||||
async getPrice(lookupKey: LookupKey): Promise<KnownStripePrice | null> {
|
||||
const prices = await this.stripe.prices.list({
|
||||
lookup_keys: [encodeLookupKey(lookupKey)],
|
||||
limit: 1,
|
||||
|
||||
Reference in New Issue
Block a user