diff --git a/api/util.mjs b/api/util.mjs index 673ca91..41c3822 100644 --- a/api/util.mjs +++ b/api/util.mjs @@ -19,7 +19,9 @@ export function safeWrap(log, name, fn) { export function getConfig(ctx) { let merge = { - applications: [] + applications: [], + name: ctx.db.config.name || '', + title: ctx.db.config.title || '', } for (let app of ctx.core.applications) { merge[app.name] = { @@ -30,7 +32,7 @@ export function getConfig(ctx) { } merge.applications.push(app.name) } - return defaults(ctx.db.config, merge) + return merge } export function getApp(ctx, name, action) { diff --git a/package.json b/package.json index b1e682e..905d81e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sc-manager", - "version": "2.0.3", + "version": "2.0.4", "description": "", "main": "index.js", "scripts": {