diff --git a/app/helpers/emailContentGenerator.js b/app/helpers/emailContentGenerator.js index 549883e..861bfb2 100644 --- a/app/helpers/emailContentGenerator.js +++ b/app/helpers/emailContentGenerator.js @@ -20,7 +20,11 @@ const generateRealEstateLinks = realEstates => { return realEstateLinks; }; -const generateNotificationEmail = (realEstates, searchRequestId) => { +const generateNotificationEmail = ( + realEstates, + searchRequestId, + dailyNotification = false +) => { const truncateList = realEstates.length > MAX_REAL_ESTATES_IN_EMAIL; const realEstatesToShow = truncateList ? realEstates.slice(0, MAX_REAL_ESTATES_IN_EMAIL) @@ -30,9 +34,20 @@ const generateNotificationEmail = (realEstates, searchRequestId) => { const realEstateLinks = generateRealEstateLinks(realEstatesToShow); const moreRealEstates = `