commit 390546da21e6a4707dc3ba24440d217a2a5496a7 parent e8dc761f3bc93ec7c41fad9aa2e5d994b6357686 Author: Florian Dold <florian@dold.me> Date: Thu, 12 Aug 2021 19:34:13 +0200 minor spec fix Diffstat:
| M | merchant-spec/public-orders-get.ts | | | 3 | +++ |
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/merchant-spec/public-orders-get.ts b/merchant-spec/public-orders-get.ts @@ -51,6 +51,9 @@ function handlePublicOrdersGet(mos: MerchantOrderStore, req: Req): Resp { return respNotFound(req); } if (!ord.claimed) { + if (!!req.claimToken && !!req.contractHash && ord.publicReorderUrl) { + return respGoto(req, ord.publicReorderUrl); + } if (ord.requireClaimToken && ord.claimToken !== req.claimToken) { return respForbidden(req); }