Skip to content

Commit

Permalink
fix: bump timeout on /diff endpoint (#3905)
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicamcinchak authored Nov 4, 2024
1 parent 21755b0 commit cc6fa05
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api.planx.uk/modules/flows/validate/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit cc6fa05

Please sign in to comment.