mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Fix recipients. (#6240)
This commit is contained in:
parent
798a41594e
commit
7b7e8a0e87
8 changed files with 57 additions and 42 deletions
|
|
@ -104,13 +104,15 @@ function webhook.dequeueRecipientAlerts(recipient, budget)
|
|||
|
||||
-- Dequeue MAX_ALERTS_PER_REQUEST notifications
|
||||
local notifications = {}
|
||||
for i = 1, MAX_ALERTS_PER_REQUEST do
|
||||
local i = 0
|
||||
while i < MAX_ALERTS_PER_REQUEST do
|
||||
local notification = ntop.recipient_dequeue(recipient.recipient_id)
|
||||
if notification then
|
||||
if alert_utils.filter_notification(notification, recipient.recipient_id) then
|
||||
if alert_utils.filter_notification(notification, recipient.recipient_id) then
|
||||
|
||||
notifications[#notifications + 1] = notification.alert
|
||||
end
|
||||
i = i + 1
|
||||
end
|
||||
else
|
||||
break
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue