Add recipient_id in redis key, fix redis value check and add TODO comment. (#6240)

This commit is contained in:
Nicolo Maio 2023-07-21 10:58:22 +00:00
parent 9c3acf2f06
commit c1128f6dea
9 changed files with 14 additions and 13 deletions

View file

@ -144,7 +144,7 @@ function email.dequeueRecipientAlerts(recipient, budget)
for i = 1, MAX_ALERTS_PER_EMAIL do
local notification = ntop.recipient_dequeue(recipient.recipient_id)
if notification then
if alert_utils.filter_notification(notification) then
if alert_utils.filter_notification(notification, recipient.recipient_id) then
notifications[#notifications + 1] = notification.alert
end
else