settings: move service setting into services.js
this also introduces getJson/setJson
This commit is contained in:
@@ -55,8 +55,8 @@ async function enableRemoteSupport(enable, auditSource) {
|
||||
}
|
||||
|
||||
async function getConfig() {
|
||||
const value = await settings.get(settings.SUPPORT_CONFIG_KEY);
|
||||
return value ? JSON.parse(value) : {
|
||||
const value = await settings.getJson(settings.SUPPORT_CONFIG_KEY);
|
||||
return value || {
|
||||
email: 'support@cloudron.io',
|
||||
remoteSupport: true,
|
||||
ticketFormBody:
|
||||
|
||||
Reference in New Issue
Block a user