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 af36653c1a - Show all commits

View File

@@ -1,8 +1,8 @@
const { getMarketAlertById } = require("../helpers/db/dbHelper");
const { getRealEstateById } = require("../helpers/db/realEstate");
const redirect = async (req, res) => {
const id = req.params["id"];
const marketAlert = await getMarketAlertById(id);
const marketAlert = await getRealEstateById(id);
if (marketAlert) {
res.redirect(marketAlert.url);
} else {