mirror of
https://github.com/vercel/commerce.git
synced 2025-05-17 15:06:59 +00:00
Update parser
This commit is contained in:
parent
8cd67f8539
commit
639914494f
@ -11,7 +11,7 @@ export const cartItemBodySchema = z.object({
|
||||
})
|
||||
|
||||
export const addItemBodySchema = z.object({
|
||||
cartId: z.string(),
|
||||
cartId: z.string().optional(),
|
||||
item: cartItemBodySchema,
|
||||
})
|
||||
|
||||
|
@ -251,7 +251,7 @@ export type GetCartHandler = GetCartHook & {
|
||||
}
|
||||
|
||||
export type AddItemHandler = AddItemHook & {
|
||||
body: { cartId: string }
|
||||
body: { cartId?: string }
|
||||
}
|
||||
|
||||
export type UpdateItemHandler = UpdateItemHook & {
|
||||
|
Loading…
x
Reference in New Issue
Block a user