chore(orchestration): idempotent (#7771)

This commit is contained in:
Carlos R. L. Rodrigues
2024-06-25 10:34:00 -03:00
committed by GitHub
parent 66d17fabde
commit 5600e58b7f
19 changed files with 421 additions and 403 deletions
@@ -71,17 +71,6 @@ const validateOrder = createStep(
const notCanceled = (o) => !o.canceled_at
throwErrorIf(order_.fulfillments, notCanceled, "fulfillments")
/*
TODO: relationship between order and returns, swaps, claims
throwErrorIf(
order_.returns,
(ret) => ret.status !== "canceled",
"returns"
)
throwErrorIf(order_.swaps, notCanceled, "swaps")
throwErrorIf(order_.claims, notCanceled, "claims")
*/
}
)