chore(orchestration): idempotent (#7771)

This commit is contained in:
Carlos R. L. Rodrigues authored and GitHub committed 2024-06-25 10:34:00 -03:00
1 parent 66d17fabde
commit 5600e58b7f
19 files changed
+421 -403

No files matched your search

@@ -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")
*/
}
)