Files
old-web/app/services/notificationService.js

19 lines
449 B
JavaScript

const Promise = require("bluebird");
const db = require("../models/index");
const { allMarketAlerts } = require('../helpers/db/dbHelper');
async function processNotifications() {
try {
const marketAlerts = await allMarketAlerts(false);
console.log(marketAlerts);
process.exit();
} catch (e) {
console.log("NOTIFICATION SERVICE: could not send notifications reason: ", e);
}
}
processNotifications();