From ac4755b34f36ac80ba64795cf583c0d5ab7c7de9 Mon Sep 17 00:00:00 2001 From: Cameron Pettit <71421099+cameronpettit@users.noreply.github.com> Date: Tue, 24 May 2022 13:52:39 -0700 Subject: [PATCH] BRS-624 update DUP email with summer text (#100) --- lambda/writePass/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lambda/writePass/index.js b/lambda/writePass/index.js index 3c19d9ed..0ec3fe7c 100644 --- a/lambda/writePass/index.js +++ b/lambda/writePass/index.js @@ -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 = { @@ -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.