Update manage backup configurations. (#5780)

This commit is contained in:
Nicolo Maio 2023-04-24 15:27:23 +00:00
parent ed2bf419bd
commit cc27befcfa
7 changed files with 251 additions and 18 deletions

View file

@ -18,7 +18,12 @@ local rc = rest_utils.consts.success.ok
local epoch_list = backup_config.list_backup()
if epoch_list then
rest_utils.answer(rc, epoch_list)
local extra_rsp_data = {
["recordsFiltered"] = tonumber(#epoch_list),
["recordsTotal"] = tonumber(#epoch_list)
}
rest_utils.extended_answer(rc, epoch_list, extra_rsp_data)
end
-- ##############################################