updateInfo: move updateInfo into apps table

this has many advantages:
* easy to deliver the updateInfo via the apps object
* after updating, the task can clear it
* when apps are deleted, the info is automatically gone

otherwise, it's a mess of deps between apps/updater/apptask/rest routes

box update info is still in a file
This commit is contained in:
Girish Ramakrishnan
2025-06-26 15:19:28 +02:00
parent abd640d36b
commit 19c9d7d59d
13 changed files with 141 additions and 149 deletions

View File

@@ -77,10 +77,10 @@ async function refreshAutoupdatePattern() {
}
async function refreshInfo() {
const [error, result] = await updaterModel.info();
const [error, result] = await updaterModel.getBoxUpdate();
if (error) return console.error(error);
pendingUpdate.value = result.box || null;
pendingUpdate.value = result || null;
}
function onShowConfigure() {
@@ -135,7 +135,7 @@ function onShowUpdate() {
async function onCheck() {
checkingBusy.value = true;
const [error] = await updaterModel.check();
const [error] = await updaterModel.checkBoxUpdate();
if (error) return console.error(error);
await refreshInfo();