fix (#16632)
This commit is contained in:
@@ -4,7 +4,7 @@ import { _generateMetadata } from "app/_utils";
|
||||
import { WithLayout } from "app/layoutHOC";
|
||||
import { z } from "zod";
|
||||
|
||||
import { StripeRepository } from "@calcom/lib/server/repository/stripe";
|
||||
import { StripeService } from "@calcom/lib/server/service/stripe";
|
||||
|
||||
import { getServerSideProps } from "@server/lib/auth/verify/getServerSideProps";
|
||||
|
||||
@@ -28,7 +28,7 @@ export const generateMetadata = async ({ params, searchParams }: _PageProps) =>
|
||||
);
|
||||
}
|
||||
|
||||
const data = await StripeRepository.getCheckoutSession({
|
||||
const data = await StripeService.getCheckoutSession({
|
||||
stripeCustomerId,
|
||||
checkoutSessionId: sessionId,
|
||||
});
|
||||
|
||||
@@ -4,7 +4,7 @@ import {
|
||||
type TStripeCheckoutSessionInputSchema,
|
||||
} from "@calcom/trpc/server/routers/publicViewer/stripeCheckoutSession.schema";
|
||||
|
||||
export class StripeRepository {
|
||||
export class StripeService {
|
||||
static async getCheckoutSession(input: TStripeCheckoutSessionInputSchema) {
|
||||
const { checkoutSessionId, stripeCustomerId } = input;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { StripeRepository } from "@calcom/lib/server/repository/stripe";
|
||||
import { StripeService } from "@calcom/lib/server/service/stripe";
|
||||
|
||||
import type { TStripeCheckoutSessionInputSchema } from "./stripeCheckoutSession.schema";
|
||||
|
||||
@@ -7,7 +7,7 @@ type StripeCheckoutSessionOptions = {
|
||||
};
|
||||
|
||||
export const stripeCheckoutSessionHandler = async ({ input }: StripeCheckoutSessionOptions) => {
|
||||
return await StripeRepository.getCheckoutSession(input);
|
||||
return await StripeService.getCheckoutSession(input);
|
||||
};
|
||||
|
||||
export default stripeCheckoutSessionHandler;
|
||||
|
||||
Reference in New Issue
Block a user