Skip to content

Commit

Permalink
fix: Correct middleware order
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr committed Nov 18, 2023
1 parent b62b75a commit 5fac00f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api.planx.uk/modules/pay/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,17 @@ router.get(

router.post(
"/payment-request/:paymentRequest/pay",
isTeamUsingGovPay,
fetchPaymentRequestDetails,
buildPaymentPayload,
isTeamUsingGovPay,
validate(paymentRequestProxySchema),
makeInviteToPayPaymentViaProxy,
);

router.get(
"/payment-request/:paymentRequest/payment/:paymentId",
fetchPaymentRequestDetails,
isTeamUsingGovPay,
validate(paymentProxySchema),
fetchPaymentRequestViaProxy,
);
Expand Down

0 comments on commit 5fac00f

Please sign in to comment.