Added formated subject to bulk email

This commit is contained in:
Nedim Uka
2019-07-02 21:49:56 +02:00
parent 7f0b2d299e
commit b79a274f96
8 changed files with 120 additions and 18 deletions

View File

@@ -16,7 +16,7 @@ async function processNotifications() {
await sendBulkEmail(marketAlerts);
} else {
console.log("NOTIFICATION SERVICE: No new alerts");
return;
process.exit();
}
await db.MarketAlert.update(
@@ -26,6 +26,7 @@ async function processNotifications() {
process.exit();
} catch (e) {
console.log("NOTIFICATION SERVICE: could not send notifications reason: ", e);
process.exit();
}
}