Added formated subject to bulk email
This commit is contained in:
@@ -11,6 +11,20 @@ const allRERequest = async () => {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Find all subscribed RealEstateRequests by UUID
|
||||
*/
|
||||
const allRERequestByUiid = async (requestArray) => {
|
||||
|
||||
const Op = db.Sequelize.Op;
|
||||
return await db.RealEstateRequest.findAll({
|
||||
where: {
|
||||
subscribed: true,
|
||||
[Op.or]: requestArray
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Find all , or all depending on notified bolean marketalerts, and order them by email
|
||||
*
|
||||
@@ -50,5 +64,6 @@ const findPointInsideBoundingBox = async (latLng, email) => {
|
||||
module.exports = {
|
||||
allRERequest,
|
||||
allMarketAlerts,
|
||||
allRERequestByUiid,
|
||||
findPointInsideBoundingBox
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user