Closed adrien2p closed 2 months ago
https://github.com/medusajs/medusa-eats/blob/16578e38bc46bf2248a46011b364b372c32c2e00/backend/src/api/deliveries/%5Bid%5D/route.ts#L52
I believe the best practice is to have all write action in a workflow even for single step, those workflows can also be used as part of other workflows using the runAsStep api
https://github.com/medusajs/medusa-eats/blob/16578e38bc46bf2248a46011b364b372c32c2e00/backend/src/api/deliveries/%5Bid%5D/route.ts#L52
I believe the best practice is to have all write action in a workflow even for single step, those workflows can also be used as part of other workflows using the runAsStep api