From cc6fa05c230fbc660eadef3d968be2ba7de68ccb Mon Sep 17 00:00:00 2001 From: Jessica McInchak Date: Mon, 4 Nov 2024 15:50:38 +0100 Subject: [PATCH] fix: bump timeout on `/diff` endpoint (#3905) --- api.planx.uk/modules/flows/validate/controller.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api.planx.uk/modules/flows/validate/controller.ts b/api.planx.uk/modules/flows/validate/controller.ts index 57c90d3849..92272eb053 100644 --- a/api.planx.uk/modules/flows/validate/controller.ts +++ b/api.planx.uk/modules/flows/validate/controller.ts @@ -22,7 +22,9 @@ export type ValidateAndDiffFlowController = ValidatedRequestHandler< >; export const validateAndDiffFlowController: ValidateAndDiffFlowController = - async (_req, res, next) => { + async (req, res, next) => { + req.setTimeout(120 * 1000); // Temporary bump to address large diff timeouts + try { const { flowId } = res.locals.parsedReq.params; const result = await validateAndDiffFlow(flowId);