settings: move service setting into services.js
this also introduces getJson/setJson
This commit is contained in:
@@ -93,7 +93,7 @@ async function setConfig(directoryServerConfig) {
|
||||
};
|
||||
|
||||
await validateConfig(config);
|
||||
await settings.set(settings.DIRECTORY_SERVER_KEY, JSON.stringify(config));
|
||||
await settings.setJson(settings.DIRECTORY_SERVER_KEY, config);
|
||||
await applyConfig(config);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user