docs: fix to recipe after latest update (#11586)

This commit is contained in:
Shahed Nasser
2025-02-24 18:56:01 +02:00
committed by GitHub
parent fb2e86484a
commit 75da1516b3
2 changed files with 7 additions and 3 deletions

View File

@@ -1117,7 +1117,9 @@ export const deleteRestaurantAdminStep = createStep(
RESTAURANT_MODULE
)
await restaurantModuleService.createRestaurantAdmins(admin)
const { restaurant: _, ...adminData } = admin
await restaurantModuleService.createRestaurantAdmins(adminData)
}
)
```
@@ -2364,7 +2366,9 @@ export const updateDeliveryStep = createStep(
async ({ prevDeliveryData }, { container }) => {
const deliveryService = container.resolve(DELIVERY_MODULE)
await deliveryService.updateDeliveries(prevDeliveryData)
const { driver, ...prevDeliveryDataWithoutDriver } = prevDeliveryData;
await deliveryService.updateDeliveries(prevDeliveryDataWithoutDriver)
}
)
```

View File

@@ -577,7 +577,7 @@ export const generatedEditDates = {
"app/medusa-cli/commands/start/page.mdx": "2024-08-28T10:44:19.952Z",
"app/medusa-cli/commands/telemtry/page.mdx": "2025-01-16T09:51:24.323Z",
"app/medusa-cli/commands/user/page.mdx": "2024-08-28T10:44:52.489Z",
"app/recipes/marketplace/examples/restaurant-delivery/page.mdx": "2025-02-20T07:20:20.650Z",
"app/recipes/marketplace/examples/restaurant-delivery/page.mdx": "2025-02-24T13:31:26.838Z",
"references/types/HttpTypes/interfaces/types.HttpTypes.AdminCreateCustomerGroup/page.mdx": "2024-12-09T13:21:33.569Z",
"references/types/HttpTypes/interfaces/types.HttpTypes.AdminCreateReservation/page.mdx": "2024-12-09T13:21:34.505Z",
"references/types/HttpTypes/interfaces/types.HttpTypes.AdminCustomerGroup/page.mdx": "2024-12-23T13:57:05.262Z",