Update parser

This commit is contained in:
Catalin Pinte 2022-10-05 17:09:12 +03:00
parent 8cd67f8539
commit 639914494f
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ export const cartItemBodySchema = z.object({
}) })
export const addItemBodySchema = z.object({ export const addItemBodySchema = z.object({
cartId: z.string(), cartId: z.string().optional(),
item: cartItemBodySchema, item: cartItemBodySchema,
}) })

View File

@ -251,7 +251,7 @@ export type GetCartHandler = GetCartHook & {
} }
export type AddItemHandler = AddItemHook & { export type AddItemHandler = AddItemHook & {
body: { cartId: string } body: { cartId?: string }
} }
export type UpdateItemHandler = UpdateItemHook & { export type UpdateItemHandler = UpdateItemHook & {