Fix enable/disable report view/download. (#7760)

This commit is contained in:
Nicolo Maio 2023-08-21 12:13:38 +02:00
parent 413c2a60ac
commit f7a78017be
4 changed files with 48 additions and 9 deletions

View file

@ -36,7 +36,12 @@ else
end
if result == 1 then
rest_utils.answer(rest_utils.consts.success.ok)
-- ok
rest_utils.answer(rest_utils.consts.success.ok, {rsp= true})
elseif result == 2 then
--already inserted case
rest_utils.answer(rest_utils.consts.success.ok, {rsp= false})
else
rest_utils.answer(rest_utils.consts.err.internal_error)
end