Add success status in configsets API

This is needed to avoid empty tables from being interpreted as arrays by the json serializer
This commit is contained in:
emanuele-f 2019-12-18 15:24:00 +01:00
parent 82e5e1f42d
commit 798f16be69
2 changed files with 10 additions and 5 deletions

View file

@ -56,6 +56,8 @@ local result = {}
local success, err = user_scripts.updateScriptConfig(confset_id, script_key, subdir, data)
result.success = success
if not success then
result.error = err
end