Skip to content

Commit

Permalink
Fixed JSON formatting in webhook notifications (#8782)
Browse files Browse the repository at this point in the history
* Moved active hosts page from interface to hosts, improved tooltip

* Fixed missing JSON formatting webhook notifications
  • Loading branch information
DGabri authored Oct 29, 2024
1 parent c3f8a46 commit da3252a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/lua/modules/notifications/endpoints/webhook.lua
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ local function formatAlertMsg(alert)
if json_decoded and json_decoded.flow_risk_info then
json_decoded.flow_risk_info = json.decode(json_decoded.flow_risk_info)
end
if json_decoded and json_decoded.alert_generation.flow_risk_info then
json_decoded.alert_generation.flow_risk_info = json.decode(json_decoded.alert_generation.flow_risk_info)
end
decoded_alert.json = json_decoded
decoded_alert.metadata = {}
end
Expand Down

0 comments on commit da3252a

Please sign in to comment.