WIP Changed all logic for searchRequest.

This commit is contained in:
Naida Vatric
2020-01-17 01:54:06 +01:00
parent 4fd4018bf6
commit 870b71a3c7
3 changed files with 352 additions and 88 deletions

View File

@@ -12,6 +12,8 @@ const { findNotNotifiedMatches } = require("../helpers/db/searchRequestMatch");
const { sendEmail } = require("../services/emailService");
const notifyForNewRealEstates = async newRealEstates => {
//
console.log("Real estates", newRealEstates);
const matches = await matchRealEstates(newRealEstates);
await notifyMatches(matches);
};