Check release channel each time.

This commit is contained in:
Patrick FIc
2025-09-09 16:07:26 -07:00
parent e9dd8ff760
commit bd9fa67087

View File

@@ -2,7 +2,6 @@ import { autoUpdater } from "electron-updater";
import { setReleaseChannel } from "../ipc/ipcMainHandler.user";
async function checkForAppUpdatesContinuously(): Promise<void> {
await setReleaseChannel();
checkForAppUpdates();
setInterval(
() => {
@@ -11,7 +10,8 @@ async function checkForAppUpdatesContinuously(): Promise<void> {
1000 * 60 * 30,
);
}
function checkForAppUpdates(): void {
async function checkForAppUpdates(): Promise<void> {
await setReleaseChannel();
autoUpdater.checkForUpdatesAndNotify({
title: "Shop Partner Update",
body: "A new version of Shop Partner is available. Click to update.",