From d175782f73bb8514e672da7c5f36671a3bbae99c Mon Sep 17 00:00:00 2001 From: Jonatan Nilsson Date: Thu, 18 Aug 2022 11:10:08 +0000 Subject: [PATCH] updater: Return latest version, not the latest installed one. Failed installs will be hidden otherwise. --- api/core/ioroutes.mjs | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/core/ioroutes.mjs b/api/core/ioroutes.mjs index 5b8eb69..fbcf6a5 100644 --- a/api/core/ioroutes.mjs +++ b/api/core/ioroutes.mjs @@ -102,7 +102,7 @@ export async function listentoapp(ctx, data) { if (!app) return 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', { name: data.name, log: version?.log || ctx.db.data.core[app.name].updater diff --git a/package.json b/package.json index 905d81e..5cad833 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sc-manager", - "version": "2.0.4", + "version": "2.0.5", "description": "", "main": "index.js", "scripts": {