updater: Return latest version, not the latest installed one. Failed installs will be hidden otherwise.
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
bdaf58b7b0
commit
d175782f73
2 changed files with 2 additions and 2 deletions
|
@ -102,7 +102,7 @@ export async function listentoapp(ctx, data) {
|
||||||
if (!app) return
|
if (!app) return
|
||||||
|
|
||||||
ctx.socket.join('app.' + data.name)
|
ctx.socket.join('app.' + data.name)
|
||||||
let version = ctx.db.get(ctx.db.data.core[app.name].versions, ctx.db.data.core[app.name].latestInstalled)
|
let version = ctx.db.data.core[app.name].versions[0]
|
||||||
ctx.socket.emit('app.updatelog', {
|
ctx.socket.emit('app.updatelog', {
|
||||||
name: data.name,
|
name: data.name,
|
||||||
log: version?.log || ctx.db.data.core[app.name].updater
|
log: version?.log || ctx.db.data.core[app.name].updater
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "sc-manager",
|
"name": "sc-manager",
|
||||||
"version": "2.0.4",
|
"version": "2.0.5",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
Loading…
Reference in a new issue