docs: fix validation in restaurant-delivery marketplace recipe (#10925)

This commit is contained in:
Shahed Nasser
2025-01-13 11:24:21 +02:00
committed by GitHub
parent db338e4b5a
commit 253b642418
@@ -2126,8 +2126,8 @@ import { createDeliveryWorkflow } from "../../../workflows/delivery/workflows/cr
import { handleDeliveryWorkflow } from "../../../workflows/delivery/workflows/handle-delivery" import { handleDeliveryWorkflow } from "../../../workflows/delivery/workflows/handle-delivery"
const schema = zod.object({ const schema = zod.object({
cart_id: zod.string().startsWith("cart_"), cart_id: zod.string(),
restaurant_id: zod.string().startsWith("res_"), restaurant_id: zod.string(),
}) })
export async function POST(req: MedusaRequest, res: MedusaResponse) { export async function POST(req: MedusaRequest, res: MedusaResponse) {