Skip to content

Commit

Permalink
fix: Wrong bool value for skipValidation
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr committed Dec 7, 2024
1 parent 96087e6 commit 80aa9a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api.planx.uk/modules/send/s3/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ const sendToS3: SendIntegrationController = async (_req, res, next) => {
const flowName = session?.flow?.name;

// Generate the ODP Schema JSON, skipping validation if not a supported application type
const doValidation = isApplicationTypeSupported(passport);
const skipValidation = !isApplicationTypeSupported(passport);
const exportData = await $api.export.digitalPlanningDataPayload(
sessionId,
doValidation,
skipValidation,
);

// Create and upload the data as an S3 file
Expand Down

0 comments on commit 80aa9a8

Please sign in to comment.