diff --git a/app/services/notificationService.js b/app/services/notificationService.js index 194d3f6..7495e17 100644 --- a/app/services/notificationService.js +++ b/app/services/notificationService.js @@ -36,8 +36,8 @@ const notifyMatches = async (matches, dailyNotification = false) => { const asyncSendEmailActions = []; for (const id of searchRequestsToNotify) { const { searchRequest, notifyNow } = matches[id]; - if (notifyNow) { - const { email } = searchRequest; + const { email, subscribed } = searchRequest; + if (notifyNow && subscribed) { const allMatchingRealEstates = matches[id].realEstates || []; if (allMatchingRealEstates.length > 0) { const emailContent = generateNotificationEmail(