chore(core-flows): favor runAsStep (#8540)

This commit is contained in:
Carlos R. L. Rodrigues authored and GitHub committed 2024-08-12 06:21:11 -03:00
1 parent f14f398685
commit 6ffe85aa3d
23 files changed
+113 -319

No files matched your search

@@ -16,8 +16,8 @@ export const POST = async (
await workflow.run({
input: {
promoCodes: payload.promo_codes,
cartId: req.params.id,
promo_codes: payload.promo_codes,
cart_id: req.params.id,
action: PromotionActions.ADD,
},
})
@@ -40,8 +40,8 @@ export const DELETE = async (
await workflow.run({
input: {
promoCodes: payload.promo_codes,
cartId: req.params.id,
promo_codes: payload.promo_codes,
cart_id: req.params.id,
action: PromotionActions.REMOVE,
},
})