Removed debugg logs. Smal fixes.
This commit is contained in:
@@ -34,11 +34,6 @@ const generateNotificationEmail = (
|
||||
noAllRealEstates,
|
||||
dailyNotification = false
|
||||
) => {
|
||||
//DEBUGGING
|
||||
console.log(
|
||||
"[DEBUGGING] Function generateNotificationEmail-noAllRealEstates:",
|
||||
noAllRealEstates
|
||||
);
|
||||
const truncateList = realEstates.length > MAX_REAL_ESTATES_IN_EMAIL;
|
||||
|
||||
const realEstatesToShow = truncateList
|
||||
@@ -65,8 +60,7 @@ const generateNotificationEmail = (
|
||||
: "U posljednja 24h objavljena je sljedeća nekretnina koja odgovara uslovima Vaše pretrage";
|
||||
|
||||
const messageBody = dailyNotification ? dailyMessageBody : asapMessageBody;
|
||||
//DEBUGGING
|
||||
console.log("[DEBUGGING]: Function generateNotificationEmail-", stagingTag);
|
||||
|
||||
return `<h3>${stagingTag}Zdravo</h3>
|
||||
<h4>${messageBody}</h4>
|
||||
<div>
|
||||
@@ -126,12 +120,6 @@ const generateNewSearchRequestEmail = (searchRequest, matchingRealEstates) => {
|
||||
|
||||
const emailFooter = generateEmailFooter(id, emailFrequencyTitle);
|
||||
|
||||
//DEBUGGING
|
||||
console.log(
|
||||
"[DEBUGGING]: Function generateNewSearchRequestEmail-",
|
||||
stagingTag
|
||||
);
|
||||
|
||||
return `<h3>${stagingTag}Zdravo</h3>
|
||||
<div>Naručili ste da Vam javimo ako se nekretnina sa navedenim uslovima pojavi u oglasima:</div>
|
||||
<br/>
|
||||
@@ -148,9 +136,6 @@ const generateNewSearchRequestEmail = (searchRequest, matchingRealEstates) => {
|
||||
};
|
||||
|
||||
const generateEmailSubject = (numberOfRealEstates, singleRealEstateTitle) => {
|
||||
//DEBUGGING
|
||||
console.log("[DEBUGGING]: Function generateEmailSubject-", stagingTag);
|
||||
|
||||
if (numberOfRealEstates === 1) {
|
||||
return `${stagingTag}Kivi: ${singleRealEstateTitle}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user