Skip to content

Commit

Permalink
ccfri-3808 - AFS Print PDF change
Browse files Browse the repository at this point in the history
  • Loading branch information
vietle-cgi committed Dec 2, 2024
1 parent 45d5c9e commit 01a2cb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/src/components/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,11 +376,11 @@ async function submitApplication(req, res) {
const ccfriFacilitiesToLock = JSON.parse(JSON.stringify(declaration));
declaration = declaration.toJSON();
try {
printPdf(req).then();

delete declaration.facilities;
let response = await patchOperationWithObjectId('ccof_applications', req.params.applicationId, declaration);

await printPdf(req).then();

// If CCRFI facilities exist on the payload we need to iterate
// each and call CCFRI endpoint to relock attributes.
if (checkKey('facilities', ccfriFacilitiesToLock)) {
Expand Down

0 comments on commit 01a2cb3

Please sign in to comment.