docs: fixes to recipes and examples following latest update (#13933)
This commit is contained in:
@@ -426,13 +426,27 @@ If you get a type error on resolving the Algolia Module, run the Medusa applicat
|
||||
</Note>
|
||||
|
||||
```ts title="src/workflows/steps/sync-products.ts"
|
||||
import { ProductDTO } from "@medusajs/framework/types"
|
||||
import { createStep, StepResponse } from "@medusajs/framework/workflows-sdk"
|
||||
import { ALGOLIA_MODULE } from "../../modules/algolia"
|
||||
import AlgoliaModuleService from "../../modules/algolia/service"
|
||||
|
||||
export type SyncProductsStepInput = {
|
||||
products: ProductDTO[]
|
||||
products: {
|
||||
id: string
|
||||
title: string
|
||||
description?: string
|
||||
handle: string
|
||||
thumbnail?: string
|
||||
categories: {
|
||||
id: string
|
||||
name: string
|
||||
handle: string
|
||||
}[]
|
||||
tags: {
|
||||
id: string
|
||||
value: string
|
||||
}[]
|
||||
}[]
|
||||
}
|
||||
|
||||
export const syncProductsStep = createStep(
|
||||
|
||||
Reference in New Issue
Block a user