Handle nav-bar

This commit is contained in:
Nedim Uka
2019-07-11 14:25:38 +02:00
parent e305c547e1
commit a6bd63b7b8
27 changed files with 84 additions and 69 deletions

View File

@@ -119,25 +119,6 @@ app.post("/api/payforalert", (req, res) => {
});
});
var runServices = async () => {
}
runServices();
var rule = new schedule.RecurrenceRule();
rule.seccond = 1;
schedule.scheduleJob(rule, async function () {
console.log(new Date(), 'Crawler service started');
await crawlAll();
console.log(new Date(), 'Crawler service finished, starting Notification service');
await processNotifications();
console.log(new Date(), 'Notification service finished');
});
app.get('/', welcome);
app.get('/vrstanekretnine/:request_id', getRealEstateTypes);
app.get('/vrstanekretnine', getRealEstateTypes);
@@ -176,3 +157,13 @@ app.get('/ponovo', getGoAgain);
app.use('/assets', express.static('./app/public'));
app.listen(port, () => console.log(`Example app listening on port ${port}!`));
var rule = new schedule.RecurrenceRule();
rule.seccond = 1;
schedule.scheduleJob(rule, async function () {
console.log(new Date(), 'Crawler service started');
// await crawlAll();
console.log(new Date(), 'Crawler service finished, starting Notification service');
// await processNotifications();
console.log(new Date(), 'Notification service finished');
});