Added realestate link to bulk email
This commit is contained in:
@@ -50,6 +50,25 @@ const allMarketAlerts = async (fetchAll, notified) => {
|
||||
|
||||
return await db.MarketAlert.findAll(queryObject);
|
||||
}
|
||||
|
||||
/**
|
||||
* Find all , MarketAlerts depending on request
|
||||
*
|
||||
* @param request string
|
||||
*
|
||||
* @returns array of MarketAlerts
|
||||
*/
|
||||
const allMarketAlertsByRequest = async (request) => {
|
||||
|
||||
let queryObject = {
|
||||
where : {
|
||||
request: request
|
||||
}
|
||||
}
|
||||
|
||||
return await db.MarketAlert.findAll(queryObject);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Find all unnotified marketalerts
|
||||
@@ -66,5 +85,6 @@ module.exports = {
|
||||
allRERequest,
|
||||
allMarketAlerts,
|
||||
allRERequestByUiid,
|
||||
findPointInsideBoundingBox
|
||||
findPointInsideBoundingBox,
|
||||
allMarketAlertsByRequest
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user