feat: initial work unifying new endpoint and generating api key
This commit is contained in:
1 parent
a1dcfa59bc
commit
fc2978a61b
8 files changed
+135
-92
No files matched your search
@@ -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