Fixes and simplifies getters of engaged alert counters

This commit is contained in:
Simone Mainardi 2021-05-07 15:06:55 +02:00
parent 7196d5e777
commit ec5a92514d
5 changed files with 6 additions and 106 deletions

View file

@ -219,21 +219,6 @@ end
-- #################################
local function getNumEngagedAlerts(options)
local entity_type_filter = tonumber(options.entity)
local entity_value_filter = options.entity_val
local res = interface.getEngagedAlertsCount(entity_type_filter, entity_value_filter)
if(res ~= nil) then
return(res.num_alerts)
end
return(0)
end
-- #################################
-- Remove pagination options from the options
local function getUnpagedAlertOptions(options)
local res = {}