Update runTest API in all endpoint plugins. Add action=test in edit_notification_recipient.lua

This commit is contained in:
Alfredo Cardigliano 2020-07-28 15:52:41 +02:00
parent 8cd379bfb9
commit e344508df1
8 changed files with 145 additions and 99 deletions

View file

@ -500,6 +500,7 @@ end
-- ##############################################
function base_pools:get_recipients(pool_id)
local pool_details
local res = {}
if pool_id == nil then
@ -509,17 +510,18 @@ function base_pools:get_recipients(pool_id)
local locked = self:_lock()
if locked then
local pool_details = self:get_pool(pool_id)
if pool_details and pool_details["recipients"] then
for _, recipient in pairs(pool_details["recipients"]) do
res[#res + 1] = recipient
end
end
pool_details = self:get_pool(pool_id)
self:_unlock()
end
if pool_details and pool_details["recipients"] then
for _, recipient in pairs(pool_details["recipients"]) do
res[#res + 1] = recipient
end
end
return res
end