Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update update-customer.ts

Steven Teya30130ddae75
diff --git a/apps/web/lib/openapi/customers/update-customer.ts b/apps/web/lib/openapi/customers/update-customer.ts
index 5e02dde2a9..c448a6a5e8 100644
--- a/apps/web/lib/openapi/customers/update-customer.ts
+++ b/apps/web/lib/openapi/customers/update-customer.ts
@@ -1,6 +1,7 @@
import { openApiErrorResponses } from "@/lib/openapi/responses";
import {
CustomerSchema,
+ getCustomersQuerySchema,
updateCustomerBodySchema,
} from "@/lib/zod/schemas/customers";
import { ZodOpenApiOperationObject } from "zod-openapi";
@@ -13,6 +14,7 @@ export const updateCustomer: ZodOpenApiOperationObject = {
description: "Update a customer for the authenticated workspace.",
requestParams: {
path: CustomerSchema.pick({ id: true }),
+ query: getCustomersQuerySchema.pick({ includeExpandedFields: true }),
},
requestBody: {
content: {