feat: initial work unifying new endpoint and generating api key
This commit is contained in:
@@ -2,9 +2,9 @@ import { withValidation } from "next-validations";
|
||||
|
||||
import { _PaymentModel as Payment } from "@calcom/prisma/zod";
|
||||
|
||||
// FIXME: Payment seems a delicate endpoint, do we need to remove anything here?
|
||||
export const schemaPaymentBodyParams = Payment.omit({ id: true });
|
||||
|
||||
export const schemaPaymentPublic = Payment.omit({});
|
||||
export const schemaPaymentPublic = Payment.omit({ externalId: true });
|
||||
|
||||
export const withValidPayment = withValidation({
|
||||
schema: schemaPaymentBodyParams,
|
||||
|
||||
Reference in New Issue
Block a user