From bd9fa670872dc5472423c8f6fbcee420d20ee3ab Mon Sep 17 00:00:00 2001 From: Patrick FIc Date: Tue, 9 Sep 2025 16:07:26 -0700 Subject: [PATCH] Check release channel each time. --- src/main/util/checkForAppUpdates.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/util/checkForAppUpdates.ts b/src/main/util/checkForAppUpdates.ts index bed4907..1cb9754 100644 --- a/src/main/util/checkForAppUpdates.ts +++ b/src/main/util/checkForAppUpdates.ts @@ -2,7 +2,6 @@ import { autoUpdater } from "electron-updater"; import { setReleaseChannel } from "../ipc/ipcMainHandler.user"; async function checkForAppUpdatesContinuously(): Promise { - await setReleaseChannel(); checkForAppUpdates(); setInterval( () => { @@ -11,7 +10,8 @@ async function checkForAppUpdatesContinuously(): Promise { 1000 * 60 * 30, ); } -function checkForAppUpdates(): void { +async function checkForAppUpdates(): Promise { + await setReleaseChannel(); autoUpdater.checkForUpdatesAndNotify({ title: "Shop Partner Update", body: "A new version of Shop Partner is available. Click to update.",