Skip to content

Commit

Permalink
Update to email address being passed to gcn (#369)
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher-walsh22 authored Apr 18, 2024
1 parent 9b66330 commit dca42a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lambda/writePass/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ async function sendTemplateMessageAndDeleteAuditItem(facilityType, personalisati
gcNotifyTemplate = process.env.GC_NOTIFY_TRAIL_RECEIPT_TEMPLATE_ID;
}
const gcnData = {
email_address: email,
email_address: passObject.email,
template_id: gcNotifyTemplate,
personalisation: personalisation
};
Expand All @@ -412,7 +412,7 @@ async function sendTemplateMessageAndDeleteAuditItem(facilityType, personalisati
logger.info(
`Pass successfully created. Registration number: ${JSON.stringify(
passObject?.Item['registrationNumber']
)}, Orcs: ${parkData.sk}`
)}, Orcs: ${passObject.Item.pk}`
);
return passObject;
};
Expand Down

0 comments on commit dca42a6

Please sign in to comment.