util: Fix bug where application config was still being leaked
All checks were successful
continuous-integration/appveyor/branch AppVeyor build succeeded
All checks were successful
continuous-integration/appveyor/branch AppVeyor build succeeded
This commit is contained in:
parent
7f6d1546f2
commit
bdaf58b7b0
2 changed files with 5 additions and 3 deletions
|
@ -19,7 +19,9 @@ export function safeWrap(log, name, fn) {
|
||||||
|
|
||||||
export function getConfig(ctx) {
|
export function getConfig(ctx) {
|
||||||
let merge = {
|
let merge = {
|
||||||
applications: []
|
applications: [],
|
||||||
|
name: ctx.db.config.name || '',
|
||||||
|
title: ctx.db.config.title || '',
|
||||||
}
|
}
|
||||||
for (let app of ctx.core.applications) {
|
for (let app of ctx.core.applications) {
|
||||||
merge[app.name] = {
|
merge[app.name] = {
|
||||||
|
@ -30,7 +32,7 @@ export function getConfig(ctx) {
|
||||||
}
|
}
|
||||||
merge.applications.push(app.name)
|
merge.applications.push(app.name)
|
||||||
}
|
}
|
||||||
return defaults(ctx.db.config, merge)
|
return merge
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getApp(ctx, name, action) {
|
export function getApp(ctx, name, action) {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "sc-manager",
|
"name": "sc-manager",
|
||||||
"version": "2.0.3",
|
"version": "2.0.4",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
Loading…
Reference in a new issue