settings: move service setting into services.js

this also introduces getJson/setJson
This commit is contained in:
Girish Ramakrishnan
2023-08-03 11:34:33 +05:30
parent 3caf0c3902
commit bbc6ba1a35
10 changed files with 42 additions and 45 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ async function setConfig(newConfig) {
const error = await testConfig(newConfig);
if (error) throw error;
await settings.set(settings.EXTERNAL_LDAP_KEY, JSON.stringify(newConfig));
await settings.setJson(settings.EXTERNAL_LDAP_KEY, newConfig);
}
// performs service bind if required