Notification service #35

Merged
bilal.catic merged 26 commits from notification-service into master 2019-09-30 16:23:40 +02:00
Showing only changes of commit 37ba7e2c8c - Show all commits

View File

@@ -1,5 +1,3 @@
require("dotenv").config();
const express = require("express");
const path = require("path");
const bodyParser = require("body-parser");
@@ -13,6 +11,9 @@ const {
} = require("./app/config/appConfig");
const routes = require("./app/routes");
const { crawlAll } = require("./app/crawler/crawl");
const {
notifyForNewRealEstates
} = require("./app/services/notificationService");
const app = express();
@@ -38,6 +39,7 @@ const crawl = () => {
crawlerRunning = true;
crawlAll().then(newRealEstates => {
crawlerRunning = false;
notifyForNewRealEstates(newRealEstates);
});
}
};