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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user