Compare commits

..

No commits in common. "master" and "v2.0.3" have entirely different histories.

3 changed files with 5 additions and 7 deletions

View file

@ -102,7 +102,7 @@ export async function listentoapp(ctx, data) {
if (!app) return
ctx.socket.join('app.' + data.name)
let version = ctx.db.data.core[app.name].versions[0]
let version = ctx.db.get(ctx.db.data.core[app.name].versions, ctx.db.data.core[app.name].latestInstalled)
ctx.socket.emit('app.updatelog', {
name: data.name,
log: version?.log || ctx.db.data.core[app.name].updater

View file

@ -19,9 +19,7 @@ export function safeWrap(log, name, fn) {
export function getConfig(ctx) {
let merge = {
applications: [],
name: ctx.db.config.name || '',
title: ctx.db.config.title || '',
applications: []
}
for (let app of ctx.core.applications) {
merge[app.name] = {
@ -32,7 +30,7 @@ export function getConfig(ctx) {
}
merge.applications.push(app.name)
}
return merge
return defaults(ctx.db.config, merge)
}
export function getApp(ctx, name, action) {
@ -90,7 +88,7 @@ export function getStatus(ctx) {
active: active,
latestInstalled: installed,
updated: appDb.updater,
running: app.running || app.ctx.version,
running: app.running,
updating: app.updating,
}
}

View file

@ -1,6 +1,6 @@
{
"name": "sc-manager",
"version": "2.0.6",
"version": "2.0.3",
"description": "",
"main": "index.js",
"scripts": {