Fixes json still in the webhook alert

This commit is contained in:
Matteo Biscosi 2024-10-28 21:49:22 +01:00
parent 8ee9799865
commit c3f8a468f4

View file

@ -99,6 +99,9 @@ local function formatAlertMsg(alert)
local decoded_alert = json.decode(alert)
if decoded_alert and decoded_alert.json then
local json_decoded = json.decode(decoded_alert.json)
if json_decoded and json_decoded.flow_risk_info then
json_decoded.flow_risk_info = json.decode(json_decoded.flow_risk_info)
end
decoded_alert.json = json_decoded
decoded_alert.metadata = {}
end