mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Reworks notifications to avoid JSON-decode to read severity
This commit is contained in:
parent
426d626331
commit
3b202121f6
19 changed files with 92 additions and 102 deletions
|
|
@ -105,7 +105,7 @@ function webhook.dequeueRecipientAlerts(recipient, budget, high_priority)
|
|||
for i = 1, MAX_ALERTS_PER_REQUEST do
|
||||
local notification = ntop.recipient_dequeue(recipient.recipient_id, high_priority)
|
||||
if notification then
|
||||
notifications[#notifications + 1] = notification
|
||||
notifications[#notifications + 1] = notification.alert
|
||||
else
|
||||
break
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue