Merge branch 'word-of-mouth-email' into 'master'
Add word of mouth requests See merge request saburly/marketalarm/web!111
This commit was merged in pull request #111.
This commit is contained in:
@@ -9,6 +9,7 @@ const { AD_CATEGORY, AD_TYPE, EMAIL_FREQUENCY } = require("../common/enums");
|
|||||||
|
|
||||||
//Tag to recognize staging from development
|
//Tag to recognize staging from development
|
||||||
const stagingTag = STAGING ? "[STAGING] " : "";
|
const stagingTag = STAGING ? "[STAGING] " : "";
|
||||||
|
const wordOfMouthRequest = `Molimo vas recite svojim prijateljima za Kivi - što više korisnika budemo imali, moći ćemo više agencija uključiti i više nekretnina imati u bazi. Hvala!`
|
||||||
|
|
||||||
const generateEmailFooter = (searchRequestId, emailFrequencyTitle) => {
|
const generateEmailFooter = (searchRequestId, emailFrequencyTitle) => {
|
||||||
return ` <div>Trenutno ste prijavljeni da obavještenja o novim nekretninama primate <strong>${emailFrequencyTitle.toLowerCase()} </strong>.</div>
|
return ` <div>Trenutno ste prijavljeni da obavještenja o novim nekretninama primate <strong>${emailFrequencyTitle.toLowerCase()} </strong>.</div>
|
||||||
@@ -69,6 +70,8 @@ const generateNotificationEmail = (
|
|||||||
${moreRealEstates}
|
${moreRealEstates}
|
||||||
</div>
|
</div>
|
||||||
<br/>
|
<br/>
|
||||||
|
${wordOfMouthRequest}
|
||||||
|
<br/>
|
||||||
${emailFooter}`;
|
${emailFooter}`;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -132,6 +135,9 @@ const generateNewSearchRequestEmail = (searchRequest, matchingRealEstates) => {
|
|||||||
</div>
|
</div>
|
||||||
${matchingRealEstates.length > 0 ? instantRealEstatesText : ""}
|
${matchingRealEstates.length > 0 ? instantRealEstatesText : ""}
|
||||||
<br/>
|
<br/>
|
||||||
|
<br/>
|
||||||
|
${wordOfMouthRequest}
|
||||||
|
<br/>
|
||||||
${emailFooter}`;
|
${emailFooter}`;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user