Skip to content

Commit

Permalink
BRS-624 update DUP email with summer text (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronpettit authored May 24, 2022
1 parent 00c9c41 commit ac4755b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lambda/writePass/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ exports.handler = async (event, context) => {
let gcNotifyTemplate = process.env.GC_NOTIFY_TRAIL_RECEIPT_TEMPLATE_ID;

const dateOptions = { day: 'numeric', month: 'long', year: 'numeric' };
const formattedDate = new Date(date).toLocaleDateString('en-US', dateOptions) + ' (' + type + ')';
const formattedDate = new Date(date).toLocaleDateString('en-US', dateOptions);

// Only let pass come through if there's enough room
let parkObj = {
Expand All @@ -196,12 +196,14 @@ exports.handler = async (event, context) => {
firstName: firstName,
lastName: lastName,
date: formattedDate,
type: type,
facilityName: facilityName,
numberOfGuests: numberOfGuests.toString(),
registrationNumber: registrationNumber.toString(),
cancellationLink: encodedCancellationLink,
parkName: parkName,
mapLink: parkData[0].mapLink
mapLink: parkData[0].mapLink,
parksLink: parkData[0].bcParksLink
};

// Parking.
Expand Down

0 comments on commit ac4755b

Please sign in to comment.