Changed to send email only to some users.

This commit is contained in:
Naida Vatric
2020-01-24 16:04:28 +01:00
parent 40509d2836
commit 470f53d29b
3 changed files with 13 additions and 10 deletions

View File

@@ -136,9 +136,6 @@ const generateCheckUpEmail = searchRequest => {
? `<div><strong>Kvadratura okućnice: Od ${gardenSizeMin} do ${gardenSizeMax} m2</strong></div>`
: ``;
const allRealEstatesLink = `${APP_URL}/nekretnine/${id}`;
const moreRealEstates = `<div>Kompletan spisak do sada pronađenih nekretnina možete pogledati na <a href="${allRealEstatesLink}">listi nekretnina</a><div>`;
const emailFooter = generateEmailFooter(id);
return `<h3>Zdravo</h3>
@@ -153,8 +150,6 @@ const generateCheckUpEmail = searchRequest => {
<div><strong>Cijena:</strong> ${priceMin} do ${priceMax} KM</div>
</div>
<br/>
${moreRealEstates}
<br/>
${emailFooter}`;
};