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

This commit is contained in:
Carlos R. L. Rodrigues
2024-08-12 06:21:11 -03:00
committed by GitHub
parent f14f398685
commit 6ffe85aa3d
23 changed files with 113 additions and 319 deletions
@@ -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,
},
})