From 9401f1cf4aa844d2c316ed5558a8f3d7b05c0dc2 Mon Sep 17 00:00:00 2001 From: Shidorien Date: Fri, 5 Jan 2024 13:44:34 +0100 Subject: [PATCH] Update configuration key for last app version --- src/renderer/services/auto-updater.service.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/renderer/services/auto-updater.service.ts b/src/renderer/services/auto-updater.service.ts index 0908bc0d..0dd629e4 100644 --- a/src/renderer/services/auto-updater.service.ts +++ b/src/renderer/services/auto-updater.service.ts @@ -63,17 +63,17 @@ export class AutoUpdaterService { } public getLastAppVersion(): string { - return this.configurationService.get("LAST_VERSION"); + return this.configurationService.get("last-app-version"); } public setLastAppVersion(){ - lastValueFrom(this.getAppVersion()).then(v => this.configurationService.set("LAST_VERSION", v)); + lastValueFrom(this.getAppVersion()).then(v => this.configurationService.set("last-app-version", v)); } private async getChangelog(): Promise { - try { + try { if (this.cacheChangelog) { - return this.cacheChangelog; + return this.cacheChangelog; } const path = `https://raw.githubusercontent.com/Zagrios/bs-manager/feature/add-changelog-modal/178/assets/jsons/changelogs.json` @@ -89,11 +89,11 @@ export class AutoUpdaterService { this.cacheChangelog = data; return data; - } - catch(error){ + } + catch(error){ this.ipcService.sendLazy("log-error", {args: error}); return undefined; - } + } } private async getChangelogVersion(version:string): Promise {